PHP 4.0 Bug #2012: Memory leak in some object instantiations with boolean class variables

From: Date: Mon, 09 Aug 1999 21:46:53 +0000
Subject: PHP 4.0 Bug #2012: Memory leak in some object instantiations with boolean class variables
Groups: php.dev 
Request: Send a blank email to php-dev+get-9697@lists.php.net to get a copy of this message
From: christophe.massiot@mail.dotcom.fr Operating system: Linux 2.0.36/Debian slink PHP version: 4.0 Beta 2 PHP Bug Type: Scripting Engine problem Bug description: Memory leak in some object instantiations with boolean class variables The following script : <? class titi { var $foobar = TRUE; } class toto extends titi { } $object = new titi; ?> produces : 23:27 [webase3:p2] titi:~/html% php temp.phtml Content-Type: text/html temp.phtml: Freeing 0x080F3E60 (4 bytes), allocated in zend_hash.c on line 185<br> temp.phtml: Freeing 0x080F4100 (42 bytes), allocated in zend_hash.c on line 175<br> Note that the var $foobar = TRUE is important and can only be TRUE or FALSE (the problem doesn't show up with "" or array()). Note also that the unused line class toto extends titi { } is necessary.

« previous php.dev (#9697) next »