ID:               22900
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Zend Engine 2 problem
 Operating System: Linux
 PHP Version:      5CVS-2003-03-26 (dev)
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2003-03-26 08:05:42] [EMAIL PROTECTED]

(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 this bug report at http://bugs.php.net/?id=22900&edit=1

Reply via email to