cvs: ZendEngine2(PHP_5_0) /tests bug34873.phpt

From: Date: Fri, 14 Oct 2005 21:52:55 +0000
Subject: cvs: ZendEngine2(PHP_5_0) /tests bug34873.phpt
Groups: php.zend-engine.cvs 
Request: Send a blank email to php-zend-engine-cvs+get-4247@lists.php.net to get a copy of this message
tony2001 Fri Oct 14 17:52:55 2005 EDT Added files: (Branch: PHP_5_0) /ZendEngine2/tests bug34873.phpt Log: MFH: add test for bug #34873 http://cvs.php.net/co.php/ZendEngine2/tests/bug34873.phpt?r=1.1&p=1 Index: ZendEngine2/tests/bug34873.phpt +++ ZendEngine2/tests/bug34873.phpt --TEST-- bug #34873 (Segmentation Fault on foreach in object) --FILE-- <?php class pwa { public $var; function __construct(){ $this->var = array(); } function test (){ $cont = array(); $cont["mykey"] = "myvalue"; foreach ($cont as $this->var['key'] => $this->var['value']) var_dump($this->var['value']); } } $myPwa = new Pwa(); $myPwa->test(); echo "Done\n"; ?> --EXPECT-- string(7) "myvalue" Done

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