ID: 38653 Updated by: [EMAIL PROTECTED] Reported By: hannes dot magnusson at gmail dot com -Status: Open +Status: Closed Bug Type: Scripting Engine problem Operating System: FreeBSD PHP Version: 5CVS-2006-08-30 (CVS) New Comment:
This bug has been fixed in CVS. 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/. Thank you for the report, and for helping us make PHP better. Previous Comments: ------------------------------------------------------------------------ [2006-08-30 10:26:49] hannes dot magnusson at gmail dot com Description: ------------ This little code snippet leaks.. Reproduce code: --------------- <?php class foo { const cons = 10; } class bar extends foo { } $foo = new ReflectionClass("foo"); $foo->getConstant("cons"); Actual result: -------------- ==73146== 16 bytes in 1 blocks are definitely lost in loss record 1 of 2 ==73146== at 0x3C03C18B: malloc (in /usr/local/lib/valgrind/vgpreload_memcheck.so) ==73146== by 0x81A4EAF: _emalloc (zend_alloc.c:1628) ==73146== by 0x81DBFF3: zend_do_fcall_common_helper_SPEC (zend_vm_execute.h:182) ==73146== by 0x81DCAD0: ZEND_DO_FCALL_BY_NAME_SPEC_HANDLER (zend_vm_execute.h:322) ==73146== by 0x81DBD01: execute (zend_vm_execute.h:92) ==73146== by 0x81BE198: zend_execute_scripts (zend.c:1095) ==73146== by 0x8178454: php_execute_script (main.c:1759) ==73146== by 0x82236C0: main (php_cli.c:1102) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38653&edit=1
