cvs: ZendEngine2(PHP_5_2) /tests bug47353.phpt
| From: | Antony Dovgal | Date: | Wed, 11 Feb 2009 10:02:28 +0000 |
| Subject: | cvs: ZendEngine2(PHP_5_2) /tests bug47353.phpt | ||
| Groups: | php.zend-engine.cvs | ||
| Request: | Send a blank email to php-zend-engine-cvs+get-7398@lists.php.net to get a copy of this message | ||
tony2001 Wed Feb 11 10:02:28 2009 UTC
Added files: (Branch: PHP_5_2)
/ZendEngine2/tests bug47353.phpt
Log:
add test
http://cvs.php.net/viewvc.cgi/ZendEngine2/tests/bug47353.phpt?view=markup&rev=1.1
Index: ZendEngine2/tests/bug47353.phpt
+++ ZendEngine2/tests/bug47353.phpt
--TEST--
Bug #47353 (crash when creating a lot of objects in object destructor)
--FILE--
<?php
class A
{
function __destruct()
{
$myArray = array();
for($i = 1; $i <= 3000; $i++) {
if(!isset($myArray[$i]))
$myArray[$i] = array();
$ref = & $myArray[$i];
$ref[] = new stdClass();
}
}
}
$a = new A();
echo "Done\n";
?>
--EXPECTF--
Done