cvs: ZendEngine2 /tests bug37144.phpt

From: Date: Mon, 15 May 2006 16:30:37 +0000
Subject: cvs: ZendEngine2 /tests bug37144.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4886@lists.php.net to get a copy of this message
dmitry Mon May 15 16:30:37 2006 UTC Modified files: /ZendEngine2/tests bug37144.phpt Log: Added test http://cvs.php.net/viewcvs.cgi/ZendEngine2/tests/bug37144.phpt?r1=1.1&r2=1.2&diff_format=u Index: ZendEngine2/tests/bug37144.phpt diff -u /dev/null ZendEngine2/tests/bug37144.phpt:1.2 --- /dev/null Mon May 15 16:30:37 2006 +++ ZendEngine2/tests/bug37144.phpt Mon May 15 16:30:37 2006 @@ -0,0 +1,14 @@ +--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

« previous php.zend-engine.cvs (#4886) next »