#45378 [Opn->Bgs]: Returning weird overwritten data in array

From: Date: Fri, 11 Jul 2008 15:50:35 +0000
Subject: #45378 [Opn->Bgs]: Returning weird overwritten data in array
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-126491@lists.php.net to get a copy of this message
ID: 45378 Updated by: jani@php.net Reported By: pwd_manager at hotmail dot com -Status: Open +Status: Bogus Bug Type: Arrays related Operating System: Linux PHP Version: 5.2.6 New Comment: When you can provide a proper reproducing script, come back and report it. Previous Comments: ------------------------------------------------------------------------ [2008-06-27 15:33:13] pwd_manager at hotmail dot com Description: ------------ Php throwing weird data into an array. Reproduce code: --------------- The code is too large to post here. Since I currently do not have a hosting server and I am working on a clients website, I have no way of hosting the code. You can email me (pwd_manager@hotmail.com) and I can email you the test code. Expected result: ---------------- The following code is supposed to loop through the massive array set the object type for each field. If you look at the original array, you will notice that all the types are clearly defined. There is no weird type called "Ant". However, if you look at the bottom of the test code, somewhere, the code returns a weird type of "Ant". There is no where that this information should be cropping up in the code. After hours of exhaustive debugging, I have learned that the error is reproduce-able on multiple OS's, that it seems to occur in the same place in this massive array of arrays, and that I am pretty sure it isn't a bug in my code. Actual result: -------------- See expected results. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=45378&edit=1

« previous php.bugs (#126491) next »