#20703 [Fbk->NoF]: session object's array is restored corruptly
| From: | php-bugs at lists dot php dot net | Date: | Sat, 14 Dec 2002 07:00:03 +0000 |
| Subject: | #20703 [Fbk->NoF]: session object's array is restored corruptly | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27674@lists.php.net to get a copy of this message | ||
ID: 20703
Updated by: php-bugs@lists.php.net
Reported By: khayll@motoros.hu
-Status: Feedback
+Status: No Feedback
Bug Type: Session related
Operating System: debian woody latest
PHP Version: 4.2.2
New Comment:
No feedback was provided for this bug for over 2 weeks, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
Previous Comments:
------------------------------------------------------------------------
[2002-11-29 00:57:17] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2002-11-28 13:57:59] khayll@motoros.hu
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 this bug report at http://bugs.php.net/?id=20703&edit=1