Re: __toString()

From: Date: Sun, 14 Dec 2003 12:55:57 +0000
Subject: Re: __toString()
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-6443@lists.php.net to get a copy of this message
On Sun, 14 Dec 2003, Sebastian Bergmann wrote: > Marcus Boerger wrote: > > We found out that calling __toString() automatically in any place in > > the executor has unsolveable problems right now (ask Andi for details). > > So if __toString() is no longer automatically called what is its > purpose then? > > I mean, if I have to explicitly call it via ->__toString() I can save > two characters and name the method toString(). Actually, you should as __ is reserved for magic methods... Derick

« previous php.internals (#6443) next »