Re: Casting of objects to array exports private/protected data

From: Date: Wed, 21 Jan 2004 15:51:38 +0000
Subject: Re: Casting of objects to array exports private/protected data
References: 1 2 3 4  Groups: php.internals 
Request: Send a blank email to internals+get-7249@lists.php.net to get a copy of this message
On Wed, 21 Jan 2004, Andi Gutmans wrote: > In general, I think casting an object to an array sucks. > I would be all for an E_STRICT message that this is deprecated as we have > "real" objects now and IMO, and that... > ...the behavior might change/go away sometime in the future. Are you saying you want to introduce a __toArray() method? :) Ducks. -adam PS: In case this wasn't clear: This is a joke. -- adam@trachtenberg.com author of o'reilly's php cookbook avoid the holiday rush, buy your copy today!

« previous php.internals (#7249) next »