[PHP-DEV] PHP 4.0 Bug #3347: string.c leaks memory From: danny.heijl <email protected>
Date: 01/29/00

From: danny.heijl <email protected>
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 <email protected> tests]#

-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: php-dev-unsubscribe <email protected>
For additional commands, e-mail: php-dev-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>