Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:48209 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69915 invoked from network); 5 May 2010 06:50:09 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 5 May 2010 06:50:09 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.185 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 212.25.124.185 il-mr1.zend.com Received: from [212.25.124.185] ([212.25.124.185:51711] helo=il-mr1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id DF/A7-08048-E1511EB4 for ; Wed, 05 May 2010 02:50:08 -0400 Received: from il-gw1.zend.com (unknown [10.1.1.21]) by il-mr1.zend.com (Postfix) with ESMTP id 82955502D4; Wed, 5 May 2010 09:28:05 +0300 (IDT) Received: from ws.home ([10.1.10.46]) by il-gw1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 5 May 2010 09:50:01 +0300 Message-ID: <4BE11518.4020506@zend.com> Date: Wed, 05 May 2010 10:50:00 +0400 User-Agent: Thunderbird 2.0.0.23 (X11/20090825) MIME-Version: 1.0 To: Moriyoshi Koizumi CC: internals@lists.php.net References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 05 May 2010 06:50:01.0412 (UTC) FILETIME=[2F3C9040:01CAEC1F] Subject: Re: [PHP-DEV] Autoboxing in PHP From: dmitry@zend.com (Dmitry Stogov) Hi Moriyoshi, I took just a quick look through the patch, but for me it looks like a bad idea. Introducing new magic function may bring a lot of troubles and open a new door for exploit writer (we already have problems with __toString() method). Also I afraid, this magic method will make php slower even if scripts don't use this future (at least the patch disables code specialization for ZEND_INIT_METHOD_CALL) and make some future type propagation optimizations non-applicable. At last the patch introduces 18 new grammar conflicts and I think it's not acceptable. Thanks. Dmitry. Moriyoshi Koizumi wrote: > Hey, > > Just to let you know about a new RFC for adding autoboxing feature in PHP. > Look at http://wiki.php.net/rfc/autoboxing . > > Regards, > Moriyoshi >