Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c

From: Date: Sat, 29 Nov 2003 23:05:05 +0000
Subject: Re: Re: [ZEND-ENGINE-CVS] cvs: ZendEngine2 / zend_API.c
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-5840@lists.php.net to get a copy of this message
At 04:59 AM 11/28/2003 -0800, Andrei Zmievski wrote:
On Thu, 27 Nov 2003, Marcus Boerger wrote:
helly         Thu Nov 27 14:24:38 2003 EDT
Modified files:
    /ZendEngine2      zend_API.c
Log: Convert objects to string if string is required by newer parameter parsing since we do this for older parameter parsing does so too. Do you really think this is necessary? I can see the automatic object->string casting being useful for things like print(), but when a extension author expects a string, would it make sense to make the object convert itself? I mean the result will most likely be some internal object info represented as a string, and not something meaningful.
I kind of agree with Andrei here. We discussed in the past that __toString() will not propogate to every place in the engine where we check for IS_STRING but will only effect print. I think getting into this is a bad idea. If the old parameter passing API does so maybe that should be fixed. Andi

« previous php.internals (#5840) next »