Re: [PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Curt Zirzow
btw, see bug 26737 for more details... http://bugs.php.net/bug.php?id=26737 Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

Re: [PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Curt Zirzow
* Thus wrote Frdric Hardy: > I'am using php 5.0.0 release. > > Try this : > var_dump($test); > var_dump(unserialize(serialize($test))); > > You should obtain something like that for fist var_dump : > > object test > string test -> 'var' > > and for the second var_dump : > > object test >

Re: [PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Frédéric Hardy
I'am using php 5.0.0 release. Try this : var_dump($test); var_dump(unserialize(serialize($test))); You should obtain something like that for fist var_dump : object test string test -> 'var' and for the second var_dump : object test string test -> 'var' string test -> & null

Re: [PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Curt Zirzow
* Thus wrote Frdric Hardy: > > class foo > { > private $var = 'var'; > ... > > function __sleep() > { > return array('var'); > } > } > > and php code like this : > > $myFoo = new foo(); > var_dump(serialize($myFoo)); > > the 'var' property was not serialized because

[PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Frédéric Hardy
Hello ! I have a problem with __sleep() and __wakeup() with php 5.0.0. if you have a class like that : class foo { private $var = 'var'; function __construct() { ... } function __sleep() { return array('var'); } function wakeup() { } } and php

[PHP] PHP5 : __sleep() and __wakeup()

2004-08-12 Thread Frédéric Hardy
Hello ! I have a problem with __sleep() and __wakeup() with php 5.0.0. if you have a class like that : class foo { private $var = 'var'; function __construct() { ... } function __sleep() { return array('var'); }