Re: Re: cast_object handler patch

From: Date: Thu, 12 Oct 2006 21:33:24 +0000
Subject: Re: Re: cast_object handler patch
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-26046@lists.php.net to get a copy of this message
On Oct 12, 2006, at 4:26 PM, Sara Golemon wrote:
How does this impact userspace __toString() handlers? Would we pass the encoding from the converter to them? function __toString($encoding) { } Do we need __toUnicode($encoding) as well? Would we just let the user pass back *whatever* type then convert as needed in the internal cast handler?
Right, I was thinking that they would just return Unicode or binary strings and the standard object handler takes care of converting it. That's the way it's currently implemented. -Andrei

« previous php.internals (#26046) next »