Re: Re: hook cast_object handler in userspace

From: Date: Wed, 06 Aug 2003 00:15:50 +0000
Subject: Re: Re: hook cast_object handler in userspace
References: 1 2 3 4 5 6 7 8 9 10 11 12  Groups: php.internals 
Request: Send a blank email to internals+get-3749@lists.php.net to get a copy of this message
AK> According to the current Coding Standard document.. it should be AK> toString() : even though php is not Case-sensitive:).. What about __construct, __destruct and __clone ? these are built in. - and done to avoid conflicts.
Shouldn't it be named __to_string() or __tostring() ? since you implicitly make this available by adding an interface Morphable?? or soemthing, - toString() is ok..
I think it's alot better to make it available via an interface.. - It at least give you some chance of working out why it works as it does.. It would be nice to hear some noise from Zeev and Andi on this :) Regards Alan

« previous php.internals (#3749) next »