I have written a patch which I think fixes bug 26737 : private/protected member
variables are not serialized (the names are returned from __sleep())
The URL of the patch is :
Comments are welcomed?
There is a test for the bug : tests/classes/bug26737.phpt but the test is wrong IMO
(the serialized value used for comparing).