moriyoshi Thu Jan 23 14:21:51 2003 EDT Added files: /php4/ext/standard/tests/serialize bug14293.phpt
Removed files: /php4/ext/standard/tests/serialize 002.phpt Log: Renamed the test name as per the convension Index: php4/ext/standard/tests/serialize/bug14293.phpt +++ php4/ext/standard/tests/serialize/bug14293.phpt --TEST-- Bug #14293 (serialize() and __sleep()) --FILE-- <?php class t { function t() { $this->a = 'hello'; } function __sleep() { echo "__sleep called\n"; return array('a','b'); } } $t = new t(); $data = serialize($t); echo "$data\n"; $t = unserialize($data); var_dump($t); ?> --EXPECT-- __sleep called O:1:"t":2:{s:1:"a";s:5:"hello";s:1:"b";N;} object(t)(2) { ["a"]=> string(5) "hello" ["b"]=> NULL } -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php