From: fujimura at wakhok dot ac dot jp
Operating system: Linux kernel-2.4.21
PHP version: 5CVS-2003-07-17 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description: Memory Leak with per-class constants
Description:
------------
The per-class constant causes memory leaks used with builtin constants.
configure line:
./configure \
--with-apxs=/usr/local/apache/bin/apxs \
--disable-short-tags \
--enable-versioning \
--enable-bcmath \
--enable-dio \
--enable-mbstring \
--enable-mbregex \
--enable-wddx \
--enable-dom \
--with-iconv \
--with-xsl \
--with-openssl \
--with-zlib \
--with-bz2 \
--enable-debug
Reproduce code:
---------------
[EMAIL PROTECTED] php-src]$ php -r 'class TEST { const FOO = SEEK_CUR; }'
/home/user/php-src/Zend/zend_language_scanner.l(1111) : Freeing
0x40435334 (9 bytes), script=-
/home/user/php-src/Zend/zend_compile.c(2405) : Freeing 0x404352F0 (16
bytes), script=-
--
Edit bug report at http://bugs.php.net/?id=24699&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=24699&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=24699&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=24699&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=24699&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=24699&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=24699&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=24699&r=support
Expected behavior: http://bugs.php.net/fix.php?id=24699&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=24699&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=24699&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=24699&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24699&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=24699&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=24699&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=24699&r=gnused