php-src/ext/spl/tests/bug52573.phpt

19 lines
311 B
Plaintext
Raw Normal View History

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