From: [EMAIL PROTECTED] Operating system: debian woody latest PHP version: 4.2.2 PHP Bug Type: Class/Object related Bug description: session object's array is restored corruptly
I'am not sure, if this is a in bug php, could be in my code, but I have looked my code over and over and could not find anything... So I describe my problem: I have a session object, and it has an array variable. In the code I do some array_shift, and array_push on one of the elements of this array, wich is also an array. And I do something like this: "get" return by reference from the session objects array: $keyArray=&$object->get("key"); then I do array_shift, and array_push to maintain a FIFO like thing to store the previous pagenames. Now the problem: normally this works in a number of pages, but in case of one page it acts strangely: for some reason an extra element into the array appears like this: normally the array values should change when going from page5 to page6 from (now I am on page5): page1 page2 page3 page4 page5 into (here there is a request for a new page: page6): page2 page3 page4 page5 page6 but instead !!! it changes to: page1 page5 page1 page6 page1 I tried to track down where this happens, and I found out, that is happening between the __sleep and __wakeup methods, which would mean, that serialize, and unserialize does not work correctly. Another wery strange thing is that this work perfecly on the local development server, which runs the same version of php... so that's it... I am going mad now! bye.. -- Edit bug report at http://bugs.php.net/?id=20703&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=20703&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=20703&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=20703&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=20703&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=20703&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=20703&r=support Expected behavior: http://bugs.php.net/fix.php?id=20703&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=20703&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=20703&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=20703&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20703&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=20703&r=dst IIS Stability: http://bugs.php.net/fix.php?id=20703&r=isapi