PHP 4.0 Bug #2009: Memory leak in switch() (zend_hash.c)
| From: | christophe dot massiot at mail dot dotcom dot fr | Date: | Mon, 09 Aug 1999 18:20:40 +0000 |
| Subject: | PHP 4.0 Bug #2009: Memory leak in switch() (zend_hash.c) | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9688@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 Latest CVS (09/08/1999)
PHP Bug Type: Scripting Engine problem
Bug description: Memory leak in switch() (zend_hash.c)
The following script :
<?
switch ($argc) { }
?>
produces :
20:17 [webase3:p3] titi:~/html% php temp.phtml
Content-Type: text/html
temp.phtml: Freeing 0x080EDFF8 (4 bytes), allocated in zend_hash.c on line 185<br>
temp.phtml: Freeing 0x080EDFA8 (40 bytes), allocated in zend_hash.c on line 175<br>
Note that $argc is not randomly chosen : you must use a variable that has been defined, either by
the CGI, of with the GET or POST methods. With a plain variable ($foobar) it doesn't show up.