php-src/Zend/tests/bug37144.phpt
Dmitry Stogov be4c37919b Added test
2006-05-15 16:44:54 +00:00

15 lines
225 B
PHP
Executable File

--TEST--
Bug #37144 (PHP crashes trying to assign into property of dead object)
--FILE--
<?php
function foo() {
$x = new stdClass();
$x->bar = array(1);
return $x;
}
foo()->bar[1] = "123";
echo "ok\n";
?>
--EXPECT--
ok