PHP 4.0 Bug #7559: zend_hash_get_current_key_ex returning persistent strings
| From: | priit at bluemoon dot ee | Date: | Wed, 01 Nov 2000 02:26:06 +0000 |
| Subject: | PHP 4.0 Bug #7559: zend_hash_get_current_key_ex returning persistent strings | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-36569@lists.php.net to get a copy of this message | ||
From: priit@bluemoon.ee
Operating system: any
PHP version: 4.0.3pl1
PHP Bug Type: Feature/Change Request
Bug description: zend_hash_get_current_key_ex returning persistent strings
Currently zend_hash_get_current_key_ex returns str_index as persistently alloced string, when hash
table is alloced persistently. I suggest that str_index should always be allocated non-persistently.
Currently all the places that call zend_hash_get_current_key_ex (print_hash, serialize, to name a
few) free str_index with efree and it fails with persistent hashes.
--
Edit Bug report at: http://bugs.php.net/?id=7559&edit=1