ID: 35895
User updated by: f dot hardy at origami-systems dot com
Reported By: f dot hardy at origami-systems dot com
Status: Open
Bug Type: Scripting Engine problem
Operating System: Freebsd 6
PHP Version: 5.1.1
New Comment:
It is the same bug than #26737, which is closed !!
The workaround return array("a",
// "\0*\0b",
// "\0" . __CLASS__ . "\0c");
is ok !
Previous Comments:
------------------------------------------------------------------------
[2006-01-04 17:36:20] f dot hardy at origami-systems dot com
Description:
------------
if __sleep return a private property in its array, php say :
Unknown: "foo" returned as member variable from __sleep() but does not
exist
Reproduce code:
---------------
<?php
class foo
{
private $foo = array();
public function __construct()
{
;
}
public function __sleep()
{
return array('foo');
}
}
?>
Expected result:
----------------
php must find a private property wich is return by __sleep.
Actual result:
--------------
Unknown: "foo" returned as member variable from __sleep() but does not
exist
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=35895&edit=1