php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4742 phpinfo() gives leak-warning in zend_hash.c
Submitted: 2000-06-01 00:29 UTC Modified: 2000-07-06 09:15 UTC
From: mavetju at chello dot nl Assigned:
Status: Closed Package: Session related
PHP Version: 4.0.0 Release OS: FreeBSD 4.0
Private report: No CVE-ID: None
 [2000-06-01 00:29 UTC] mavetju at chello dot nl
When checking the error-log of apache I see now and then the following warning on a script with phpinfo() in the script:

zend_hash.c(185) :  Freeing 0x082274E4 (20 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
Last leak repeated 1 time
session.c(1240) :  Freeing 0x08224224 (10 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
session.c(1250) :  Freeing 0x082237E4 (8 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
session.c(1239) :  Freeing 0x081C01E4 (5 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
session.c(1248) :  Freeing 0x081EF964 (2 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
session.c(1249) :  Freeing 0x081EF564 (1 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
session.c(1245) :  Freeing 0x081EF524 (1 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
session.c(1241) :  Freeing 0x081EF4E4 (1 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
session.c(1248) :  Freeing 0x08221064 (2 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
session.c(1250) :  Freeing 0x0820D424 (8 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
session.c(1245) :  Freeing 0x081C6F24 (1 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
zend_hash.c(185) :  Freeing 0x081C6FA4 (20 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
Last leak repeated 1 time
session.c(1240) :  Freeing 0x081C1924 (10 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
session.c(1239) :  Freeing 0x081C0464 (5 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
session.c(1241) :  Freeing 0x081EF564 (1 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml
session.c(1249) :  Freeing 0x081EF4E4 (1 bytes), script=/home/www/htdocs.logreport.org/phpinfo.phtml

php-configure:
./configure' '--with-apache=../apache_1.3.12' '--enable-track-vars' '--with-zlib-dir' '--with-png-dir'

apache-configure:
./configure --prefix=/home/www --activate-module=src/modules/php4/libphp4.a
--enable-module=rewrite

php.ini is the default one (php.ini-dist)

If you need more information feel free to contact me.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-24 10:29 UTC] stas at cvs dot php dot net
That's session module which leaks, if it isn't fixed yet.
 [2000-07-06 09:15 UTC] sas at cvs dot php dot net
This has been fixed in PHP 4.0.1. Please upgrade to the latest release.
 
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 01 02:03:46 2023 UTC