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
 [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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 21:01:36 2024 UTC