PHP 4.0 Bug #3347: string.c leaks memory
| From: | danny dot heijl at cevi dot be | Date: | Sat, 29 Jan 2000 16:00:30 +0000 |
| Subject: | PHP 4.0 Bug #3347: string.c leaks memory | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-15022@lists.php.net to get a copy of this message | ||
From: danny.heijl@cevi.be
Operating system: Linux Red Hat 6.0
PHP version: 4.0 Latest CVS (29/01/2000)
PHP Bug Type: Scripting Engine problem
Bug description: string.c leaks memory
Simple scripts leak memory :
<?php
$a = "abc def ghi";
$b = ucwords($a);
echo "ucwords:\n";
echo $a . "\n";
echo $b . "\n";
?>
X-Powered-By: PHP/4.0b4-dev
Content-Type: text/html
ucwords:
abc def ghi
Abc Def Ghi
/home/web/php/php4/ext/standard/string.c(1109) : Freeing 0x0824BB84 (12 bytes), script=leak.php
../../php4/Zend/zend_variables.c(126) : Actual location (location was relayed)
../../php4/Zend/zend_execute.c(1537) : Freeing 0x0824598C (12 bytes), script=leak.php
[root@dannyslx tests]#