Re: need inverted __sleep?

From: Date: Mon, 01 Jun 2009 14:13:32 +0000
Subject: Re: need inverted __sleep?
References: 1 2 3  Groups: php.internals 
Request: Send a blank email to internals+get-44116@lists.php.net to get a copy of this message
Hi 2009/6/1 Nathan Rixham <nrixham@gmail.com>: > Matt Wilson wrote: >> >> get_class_vars + array_diff > > cheers but nope; as the manual says > "Returns an associative array of default public properties of the class" I've recently fixed the manual about get_class_vars, since PHP 5.0.5 get_class_vars, depending on the scope will return the properties thats accessable from this scope, so calling it inside a method will expose both its public/protected/private properties. > > need private and inherited private > -- regrads, Kalle Sommer Nielsen kalle@php.net

« previous php.internals (#44116) next »