php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2416 strange results accessing hashtables
Submitted: 1999-10-01 04:59 UTC Modified: 2000-06-11 20:08 UTC
From: andre dot landwehr at bertelsmann dot de Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Beta 2 OS: linux 2.2.9, glibc 2.1.1, egcs 1
Private report: No CVE-ID: None
 [1999-10-01 04:59 UTC] andre dot landwehr at bertelsmann dot de
I have a hashtable, keys are of the form "Oct 19 1999 12:00AM", values are a single character, like "X" or "H". The hashtable is filled with data from a Sybase database. When I request a value directly after writing it into the hashtable there is no problem. When I request it later in the script trying to fill a HTML-Table the key of another field of this hashtable is returned as the value sometimes. I cannot recognize any pattern in this, there are always about 10% of the fields affected. A reload of the page does not necessarily affect the same fields in the same way again.
The script worked without problems with PHP3.x

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-10-01 12:18 UTC] andrei at cvs dot php dot net
Can you submit the simplest test script which demonstrates
this problem?
 [1999-11-14 03:12 UTC] joey at cvs dot php dot net
I have witnessed this also, and even had a good test case earlier. I will see
if I can dig it up.

BTW, saw it in B3-RC4
 [2000-01-11 04:52 UTC] joey at cvs dot php dot net
Pretty sure zeev fixed this one a while ago....are you still seeing it?
 [2000-01-11 04:52 UTC] joey at cvs dot php dot net
Pretty sure zeev fixed this one a while ago....are you still seeing it?
 [2000-06-11 20:08 UTC] zeev at cvs dot php dot net
No user feedback - this should be fixed by now...
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 17 09:01:32 2024 UTC