diff --git a/language/oop5/magic.xml b/language/oop5/magic.xml index 626a4e0057..b806632e7b 100644 --- a/language/oop5/magic.xml +++ b/language/oop5/magic.xml @@ -41,8 +41,16 @@ and is supposed to return an array with the names of all variables of that object that should be serialized. If the method doesn't return anything then &null; is serialized and - E_NOTICE is issued. + E_NOTICE is issued. + + + It is not possible for __sleep to return names of + private properties in parent classes. Doing this will result in an + E_NOTICE level error. Instead you may use the + Serializable interface. + + The intended use of __sleep is to commit pending data or perform similar cleanup tasks. Also, the function is