php-src/ext/spl/tests/bug52573.phpt
Gabriel Caruso ded3d984c6 Use EXPECT instead of EXPECTF when possible
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00

19 lines
310 B
PHP

--TEST--
Bug #52573 (SplFileObject::fscanf Segmentation fault)
--FILE--
<?php // test
$result = null;
$f = new SplFileObject(__FILE__, 'r');
var_dump($f->fscanf('<?php // %s', $result));
var_dump($result);
var_dump($f->fscanf('<?php // %s'));
?>
--EXPECT--
int(1)
string(4) "test"
array(1) {
[0]=>
NULL
}