|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-03-26 10:11 UTC] iliaa@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Nov 04 16:00:01 2025 UTC |
(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