PHP NEWS
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
?? ??? 2010, PHP 5.3.4
+- Fixed bug #52573 (SplFileObject::fscanf Segmentation fault). (Felipe)
- Fixed bug #52546 (pdo_dblib segmentation fault when iterating MONEY values).
(Felipe)
- Fixed bug #52534 (var_export array with negative key). (Felipe)
result = zend_call_function(&fci, &fcic TSRMLS_CC);
- ZVAL_ZVAL(return_value, retval, 1, 1);
+ if (result == FAILURE) {
+ RETVAL_FALSE;
+ } else {
+ ZVAL_ZVAL(return_value, retval, 1, 1);
+ }
efree(params);
return result;
--- /dev/null
+--TEST--
+Bug #52573 (SplFileObject::fscanf Segmentation fault)
+--FILE--
+<?php
+
+$result = null;
+$f = new SplFileObject(__FILE__, 'r');
+$f->fscanf('<?php // %s', $result);
+
+?>
+--EXPECTF--
+Warning: Parameter 3 to fscanf() expected to be a reference, value given in %s on line 5