Hello, > > I still have the following problem I'm experiencing with all release > candidates > since RC6: > > $ /cygdrive/f/Programme/php-5.4.0RC8-nts-Win32-VC9-x86/php -r 'class A { > function __wakeup() { echo "WAKEUP!"; }} > var_dump(unserialize(serialize(new A())));' > object(A)#1 (0) { > } > > (Hint: __wakeup() isn't called). >
This looks to be the same as https://bugs.php.net/bug.php?id=60879. Can you try the build I linked to in that report and see if it resolves this issue for you? > I cannot reproduce when I compile PHP myself, whether on Windows, > Gentoo or Ubuntu, but it persists in the binaries the PHP group provides; I’m > out of wisdom here, though a wild guess is some variable initializations are > missing. > > See also https://bugs.php.net/bug.php?id=60919 > > - Timm