Re: PHP 4.0 Bug #3347: string.c leaks memory

From: Date: Sat, 29 Jan 2000 22:01:36 +0000
Subject: Re: PHP 4.0 Bug #3347: string.c leaks memory
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-15037@lists.php.net to get a copy of this message
Are you sure? I just did cvs update and compiled the latest version and it doesn't leak. On Sat, 29 Jan 2000, danny.heijl@cevi.be wrote: > 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]# > > > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > -Andrei The 3 great virtues of a programmer: Laziness, Impatience, and Hubris. --Larry Wall

« previous php.dev (#15037) next »