problems with new zend_hash_destroy (current Zend CVS is instable)
| From: | Thies C . Arntzen | Date: | Mon, 17 Jan 2000 14:00:45 +0000 |
| Subject: | problems with new zend_hash_destroy (current Zend CVS is instable) | ||
| Groups: | php.version4 | ||
| Request: | Send a blank email to php-version4+get-9190@lists.php.net to get a copy of this message | ||
<?
function a() { }
function b() { }
function c() { }
?>
causes:
**** Purify instrumented ./php (pid 23582) ****
FMR: Free memory read:
* This is occurring while in:
zend_hash_del_key_or_index [zend_hash.c:729]
zend_unregister_functions [zend_API.c:773]
module_destructor [zend_API.c:809]
zend_hash_destroy [zend_hash.c:786]
zend_shutdown [zend.c:376]
php_module_shutdown [main.c:1002]
* Reading 4 bytes from 0x391408 in the heap.
* Address 0x391408 is at the beginning of a freed block of 37 bytes.
* This block was allocated from:
malloc [rtlib.o]
zend_hash_add_or_update [zend_hash.c:205]
do_bind_function_or_class [zend_compile.c:1036]
do_early_binding [zend_compile.c:1120]
zendparse [zend-parser.y:146]
v_compile_files [zend-scanner.l:355]
* There have been 682 frees since this block was freed.
**** Purify instrumented ./php (pid 23582) ****
FMR: Free memory read:
* This is occurring while in:
zend_hash_del_key_or_index [zend_hash.c:765]
zend_unregister_functions [zend_API.c:773]
module_destructor [zend_API.c:809]
zend_hash_destroy [zend_hash.c:786]
zend_shutdown [zend.c:376]
php_module_shutdown [main.c:1002]
* Reading 4 bytes from 0x391424 in the heap.
* Address 0x391424 is 28 bytes into a freed block at 0x391408 of 37 bytes.
* This block was allocated from:
malloc [rtlib.o]
zend_hash_add_or_update [zend_hash.c:205]
do_bind_function_or_class [zend_compile.c:1036]
do_early_binding [zend_compile.c:1120]
zendparse [zend-parser.y:146]
v_compile_files [zend-scanner.l:355]
* There have been 682 frees since this block was freed.
**** Purify instrumented ./php (pid 23582) ****
FMW: Free memory write:
* This is occurring while in:
zend_hash_del_key_or_index [zend_hash.c:735]
zend_unregister_functions [zend_API.c:773]
module_destructor [zend_API.c:809]
zend_hash_destroy [zend_hash.c:786]
zend_shutdown [zend.c:376]
php_module_shutdown [main.c:1002]
* Writing 4 bytes to 0x391424 in the heap.
* Address 0x391424 is 28 bytes into a freed block at 0x391408 of 37 bytes.
* This block was allocated from:
malloc [rtlib.o]
zend_hash_add_or_update [zend_hash.c:205]
do_bind_function_or_class [zend_compile.c:1036]
do_early_binding [zend_compile.c:1120]
zendparse [zend-parser.y:146]
v_compile_files [zend-scanner.l:355]
* There have been 682 frees since this block was freed.