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.
23 lines
269 B
PHP
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
|