mem-leak in recursive arrays (latest CVS)
| From: | Thies C. Arntzen | Date: | Tue, 10 Aug 1999 09:58:02 +0000 |
| Subject: | mem-leak in recursive arrays (latest CVS) | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-3269@lists.php.net to get a copy of this message | ||
<?
$d = array("hallo" => "test");
$d["pallo"] = &$d;
?>
gives:
../crash/recurse.php: Freeing 0x00154B80 (41 bytes), allocated in
/dot/dc4/zend/test/../php4/libzend/zend_hash.c on line 175<br>
../crash/recurse.php: Last leak repeated 1 time
../crash/recurse.php: Freeing 0x00154B48 (4 bytes), allocated in
/dot/dc4/zend/test/../php4/libzend/zend_hash.c on line 185<br>
../crash/recurse.php: Freeing 0x00154AA0 (20 bytes), allocated in
/dot/dc4/zend/test/../php4/libzend/zend_hash.c on line 95<br>
../crash/recurse.php: Freeing 0x00154A40 (44 bytes), allocated in
/dot/dc4/zend/test/../php4/libzend/zend_API.c on line 192<br>
../crash/recurse.php: Freeing 0x001602B0 (24 bytes), allocated in
/dot/dc4/zend/test/../php4/libzend/zend_execute.c on line 368<br>
i know - this sample is silly - but i'm just considering building trees and lists in php4...
tc
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany