mirror of
https://github.com/php/php-src.git
synced 2025-01-05 18:33:56 +08:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
19 lines
310 B
PHP
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
|
|
}
|