|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-10-23 11:01 UTC] mike@php.net
[2005-10-31 07:14 UTC] ihanic at yahoo dot com
[2006-01-02 10:35 UTC] gopalv82 at yahoo dot com
[2006-07-27 11:28 UTC] gopalv82 at yahoo dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 21:00:01 2025 UTC |
Description: ------------ Some memory leaks can be detected if php compiled with --enable debug. Configure Command => './configure' '--prefix=/usr' '--host=i686-pc-linux-gnu' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--datadir=/usr/share' '--sysconfdir=/etc' '--localstatedir=/var/lib' '--with-apxs2=/usr/sbin/apxs2' '--with-curl=/usr' '--with-jpeg-dir=/usr' '--with-png-dir=/usr' '--with-tiff-dir=/usr' '--with-config-file-path=/etc/php' '--with-gd' '--with-ttf' '--enable-gd-native-ttf' '--with-freetype-dir=/usr' '--with-zlib-dir=/usr/lib' '--with-mysql=/usr' '--enable-debug' '--enable-track-vars' '--enable-wddx' '--enable-sysvsem' '--enable-sysvshm' '--enable-ftp' '--disable-ipv6' '--enable-trans-sid' '--enable-sockets' '--enable-pcntl' '--with-iconv' '--with-oci8-instant-client' '--with-imap=/usr' '--with-imap-ssl=/usr' '--enable-memory-limit' apache2 -V Server version: Apache/2.0.54 Server built: May 4 2005 17:34:56 Server's Module Magic Number: 20020903:9 Architecture: 32-bit Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D HTTPD_ROOT="/usr" -D SUEXEC_BIN="/usr/bin/suexec" -D DEFAULT_PIDLOG="/var/run/httpd.pid" -D DEFAULT_SCOREBOARD="logs/apache_runtime_status" -D DEFAULT_LOCKFILE="/var/run/accept.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D AP_TYPES_CONFIG_FILE="/etc/apache2/conf/mime.types" -D SERVER_CONFIG_FILE="/etc/apache2/conf/apache2.conf" Reproduce code: --------------- cat /var/www/html/bug1194383.php <?php class bar{var $f=0;} class newbar extends bar {} class foo1234 { public function bar341() { return (1); } } $sample = new foo1234; print $sample->bar341(); ?> ab2 -n 2 http://localhost/bug1194383.php Expected result: ---------------- clear apache error log Actual result: -------------- cat error_log /home/ihanic/cvs/pecl/apc/apc_zend.c(34) : Freeing 0x08254EFC (32 bytes), script=/var/www/html/bug1194383.php Last leak repeated 34 times /home/ihanic/cvs/pecl/apc/apc_compile.c(1899) : Freeing 0x08254D4C (128 bytes), script=/var/www/html/bug1194383.php /home/ihanic/cvs/pecl/apc/apc_compile.c(1918) : Freeing 0x08254AB4 (312 bytes), script=/var/www/html/bug1194383.php Last leak repeated 2 times === Total 39 memory leaks detected ===