Path: csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!news.musoftware.de!wum.musoftware.de!fu-berlin.de!uni-berlin.de!not-for-mail From: "M. Strobel" Newsgroups: comp.lang.php Subject: Re: out of sheer curiosity... Date: Tue, 10 Apr 2012 20:25:59 +0200 Lines: 13 Message-ID: <9ujc9nFae4U2@mid.uni-berlin.de> References: <17777949.TfjZNtg3zH@PointedEars.de> <9tij5fFmi8U1@mid.uni-berlin.de> <4f74567c$0$6887$e4fe514c@news2.news.xs4all.nl> <4f746ff9$0$6918$e4fe514c@news2.news.xs4all.nl> <9uebvuFt0pU1@mid.uni-berlin.de> <9ueidtFagfU1@mid.uni-berlin.de> <9ufofaFvj5U1@mid.uni-berlin.de> <9uj7psF94nU1@mid.uni-berlin.de> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: news.uni-berlin.de U0TlJ7Zn52k9P0UxTaDzcAqFpM+V5vEHuiSLsE4oyAsKnFUnU= User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; de; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 In-Reply-To: Xref: csiph.com comp.lang.php:5438 Am 10.04.2012 20:17, schrieb Thomas Mlynarczyk: > M. Strobel schrieb: > >> It is not possible for __sleep() to return names of private properties in parent >> classes. (...) Instead you may use the Serializable interface. > > I wish I could use __sleep() without having to return an array of properties at all > so I could just sing a lullaby to my object and let serialize() serialize /all/ > properties without having to specify them all. Omit _sleep(), and sing. /Str.