Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:31989 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 41616 invoked by uid 1010); 30 Aug 2007 19:27:57 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 41601 invoked from network); 30 Aug 2007 19:27:57 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 30 Aug 2007 19:27:57 -0000 Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 63.205.162.114 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 63.205.162.114 unknown Windows 2000 SP4, XP SP1 Received: from [63.205.162.114] ([63.205.162.114:56309] helo=us-ex1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 24/71-35128-B3A17D64 for ; Thu, 30 Aug 2007 15:27:57 -0400 Received: from [127.0.0.1] ([192.168.16.180]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.1830); Thu, 30 Aug 2007 12:27:53 -0700 Message-ID: <46D71A36.2060603@zend.com> Date: Thu, 30 Aug 2007 12:27:50 -0700 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Antony Dovgal CC: php-dev References: <46D6BE5F.8060900@zend.com> In-Reply-To: <46D6BE5F.8060900@zend.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 30 Aug 2007 19:27:53.0453 (UTC) FILETIME=[DC4621D0:01C7EB3B] Subject: Re: [PHP-DEV] [PATCH] disallow arguments by ref in magic methods From: stas@zend.com (Stanislav Malyshev) > Expected result of this code is: > Fatal error: Method test::__set() cannot take arguments by reference in %s on line %d I'd make it a warning. As far as I can see, declaring __set with references doesn't do anything bad, just reference thing doesn't work (correct me here if I'm wrong). So why should we produce fatal error? -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com