Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15079 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 26565 invoked by uid 1010); 17 Feb 2005 22:52:48 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 26550 invoked from network); 17 Feb 2005 22:52:48 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 17 Feb 2005 22:52:48 -0000 X-Host-Fingerprint: 83.97.50.139 jan.prima.de FreeBSD 4.6-4.9 Received: from ([83.97.50.139:4335] helo=jan.prima.de) by pb1.pair.com (ecelerity 1.2 (r4437)) with SMTP id 67/48-28819-F3025124 for ; Thu, 17 Feb 2005 17:52:48 -0500 Received: from BAUMBART (pD95F8533.dip.t-dialin.net [::ffff:217.95.133.51]) (IDENT: HydraIRC, AUTH: LOGIN tobi) by jan.prima.de with esmtp; Thu, 17 Feb 2005 22:52:44 +0000 Date: Thu, 17 Feb 2005 23:52:34 +0100 Reply-To: Marcus Boerger X-Priority: 3 (Normal) Message-ID: <1476438653.20050217235234@marcus-boerger.de> To: Andi Gutmans CC: internals@lists.php.net In-Reply-To: <5.1.0.14.2.20050217114315.02076c60@localhost> References: <59089102.20050217201853@marcus-boerger.de> <5.1.0.14.2.20050217114315.02076c60@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Before March 1st aka PHP 5.1 beta From: helly@php.net (Marcus Boerger) Hello Andi, Thursday, February 17, 2005, 8:49:44 PM, you wrote: > At 08:18 PM 2/17/2005 +0100, Marcus Boerger wrote: >>Hello internals, >> >> before we rush into another version, how about clearing some open issues >>that were explicitly relayed from 5.0 to 5.1. >> >>1) __toString() >> >> There was a problem with the Zend engine 2.0 that forced us to drop this >> feature. Now that we have 2.1 we should check again and readd the feature. >> Since PHP is designed to generate string output i think that should be >> made as easy as possible. And after learning echo and '.' it is hard to >> explain that 'echo $foo . $bar' could result in something different than >> 'echo $foo, $bar'. Besides if it turned out that there is still a >> reentrance problem then we'd need to remove __call, __get, __set, >> iterators..... > Yes, I think we could revisit this. It should work right now although I'm > still skeptical about what place to put this and what not. If I recall you > wanted convert_to_string() and all other places to support this, right? For PHP 5.0 we used to have a special conversion make_printable - i guess we shouldn't go that way again if there's no need and instead simply call the objects conversion handler that could (again) call __toString() if it is present. What do you think? -- Best regards, Marcus mailto:helly@php.net