|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-05-11 08:26 UTC] moriyoshi@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Tue Dec 23 04:00:01 2025 UTC |
The following scripts gives quite some memory leaks in a HEAD debug build: $ cat exception2_1.php <?php require_once 'exception2_2.php'; try { } catch (foo:bar::baz $e) { } ?> $ cat exception2_2.php <?php namespace foo:bar { class baz { function __construct() { } } } namespace foo { } ?> $ php exception2_1.php /home/mfischer/isrc/cvs/php5/Zend/zend_compile.c(3267) : Freeing 0x401B05B0 (32 bytes), script=exception2_1.php /home/mfischer/isrc/cvs/php5/Zend/zend_hash.c(176) : Actual location (location was relayed) /home/mfischer/isrc/cvs/php5/Zend/zend_compile.c(3266) : Freeing 0x401B054C (44 bytes), script=exception2_1.php /home/mfischer/isrc/cvs/php5/Zend/zend_compile.c(3265) : Freeing 0x401B04D8 (64 bytes), script=exception2_1.php /home/mfischer/isrc/cvs/php5/Zend/zend_hash.c(176) : Actual location (location was relayed) /home/mfischer/isrc/cvs/php5/Zend/zend_compile.c(3264) : Freeing 0x401B0464 (64 bytes), script=exception2_1.php /home/mfischer/isrc/cvs/php5/Zend/zend_hash.c(176) : Actual location (location was relayed) /home/mfischer/isrc/cvs/php5/Zend/zend_compile.c(3263) : Freeing 0x401B03F0 (64 bytes), script=exception2_1.php /home/mfischer/isrc/cvs/php5/Zend/zend_hash.c(176) : Actual location (location was relayed) /home/mfischer/isrc/cvs/php5/Zend/zend_compile.c(3286) : Freeing 0x401B0294 (296 bytes), script=exception2_1.php /home/mfischer/isrc/cvs/php5/Zend/zend_language_scanner.l(1114) : Freeing 0x401B0258 (4 bytes), script=exception2_1.php Note that doing any of the following completely removes the leak warnings: - Move content of file 2_2 completely into 2_1 - Remove the __construct function - Move namespace foo declaring before namespace foo:bar