From: [EMAIL PROTECTED]
Operating system: Linux
PHP version: 5CVS-2003-03-26 (dev)
PHP Bug Type: Zend Engine 2 problem
Bug description: Declaring the same namespace multiple times leaks memory
(using a debug build)
Declaring the same namespace multiple times leaks memory. The leak is
repeated for every further occurence of the same namespace.
$ cat namesapce.php
<?php
namespace whatever { }
?>
$ php namesapce.php
$
$ cat namesapce.php
<?php
namespace whatever { }
namespace whatever { }
?>
$ php namesapce.php
/home/mfischer/isrc/cvs/php5/Zend/zend_language_scanner.l(1114) : Freeing
0x401B0B70 (9 bytes), script=namesapce.php
cat namesapce.php
<?php
namespace whatever { }
namespace whatever { }
namespace whatever { }
?>
$ php namesapce.php
/home/mfischer/isrc/cvs/php5/Zend/zend_language_scanner.l(1114) : Freeing
0x401B0BF8 (9 bytes), script=namesapce.php
Last leak repeated 1 time
--
Edit bug report at http://bugs.php.net/?id=22900&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=22900&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=22900&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=22900&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=22900&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=22900&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=22900&r=support
Expected behavior: http://bugs.php.net/fix.php?id=22900&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=22900&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=22900&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=22900&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22900&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=22900&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=22900&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=22900&r=gnused