php-src/ext/spl/tests/bug53362.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

23 lines
269 B
PHP

--TEST--
Bug #53362 (Segmentation fault when extending SplFixedArray)
--FILE--
<?php
class obj extends SplFixedArray{
public function offsetSet($offset, $value) {
var_dump($offset);
}
}
$obj = new obj;
$obj[]=2;
$obj[]=2;
$obj[]=2;
?>
--EXPECT--
NULL
NULL
NULL