cvs: ZendEngine2(PHP_5_2) /tests bug47353.phpt
[email protected] ("Antony Dovgal") Wed, 11 Feb 2009 10:02:28 -0000
| Newsgroups | php.zend-engine.cvs |
|---|---|
| Message-ID | <cvstony20011234346548@cvsserver> |
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