Re: wacky object idea

From: Date: Wed, 30 Aug 2000 04:23:20 +0000
Subject: Re: wacky object idea
References: 1 2 3 4 5 6 7 8 9 10 11 12 13  Groups: php.dev 
Request: Send a blank email to php-dev+get-31188@lists.php.net to get a copy of this message
No. At 05:57 30/08/2000, Thomas Swan wrote:
At 8/29/2000 06:44 PM +0300, Zeev Suraski wrote:
At 10:34 29-08-00, thies@digicol.de wrote:
On Tue, Aug 29, 2000 at 12:18:44AM +0200, Stig S. Bakken wrote:
Hm, it I just changed my opinion on this as well (the C++ operator overlodaing comparison did the trick :-). I guess I'll just rename all the toString methods in PEAR to __string_value.
    plz be aware that __string_value() is only called when you
    "print" the object (echo $myclass) and _not_ when you cast it to a
    string ($b = (string)$myclass). i think we need to fix that!
It's completely intentional. This feature is for debugging purposes only.
Haven't thought about this... Does this work with sprintf( )?
-- Zeev Suraski <zeev@zend.com> http://www.zend.com/

« previous php.dev (#31188) next »