php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #7559 zend_hash_get_current_key_ex returning persistent strings
Submitted: 2000-10-31 21:26 UTC Modified: 2013-10-27 15:15 UTC
Votes:2
Avg. Score:4.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: priit at bluemoon dot ee Assigned: krakjoe (profile)
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.3pl1 OS: any
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: priit at bluemoon dot ee
New email:
PHP Version: OS:

 

 [2000-10-31 21:26 UTC] priit at bluemoon dot ee
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. 

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-31 22:49 UTC] jani@php.net
-Package: Feature/Change Request +Package: Scripting Engine problem
 [2013-10-27 15:15 UTC] krakjoe@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: krakjoe
 [2013-10-27 15:15 UTC] krakjoe@php.net
This is no longer the case.

Closing the bug.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sun Jul 06 20:01:35 2025 UTC