mem-leak when using += on arrays
| From: | Thies C. Arntzen | Date: | Thu, 23 Sep 1999 10:10:59 +0000 |
| Subject: | mem-leak when using += on arrays | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-4819@lists.php.net to get a copy of this message | ||
<?
$a = array(1);
$b = array();
$b += $a;
?>
outputs:
Content-Type: text/html
/dot/dc4/zend/php-dev/php4_cgi_debug/../php4/libzend/zend_hash.c(100) : Freeing 0x0011DCA0 (20
bytes), script=../crash/arrayadd.php
/dot/dc4/zend/php-dev/php4_cgi_debug/../php4/libzend/zend_API.c(192) : Freeing 0x0011DC38 (44
bytes), script=../crash/arrayadd.php