ID:               20703
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-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] [EMAIL PROTECTED]

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] [EMAIL PROTECTED]

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

Reply via email to