Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:37937 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39049 invoked from network); 28 May 2008 06:24:04 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 May 2008 06:24:04 -0000 Authentication-Results: pb1.pair.com header.from=stas@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=stas@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 212.25.124.162 as permitted sender) X-PHP-List-Original-Sender: stas@zend.com X-Host-Fingerprint: 212.25.124.162 mail.zend.com Windows 2000 SP4, XP SP1 Received: from [212.25.124.162] ([212.25.124.162:28871] helo=mx1.zend.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 46/72-15519-38AFC384 for ; Wed, 28 May 2008 02:24:04 -0400 Received: from us-ex1.zend.com ([192.168.16.5]) by mx1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 28 May 2008 09:25:15 +0300 Received: from [192.168.17.46] ([192.168.17.46]) by us-ex1.zend.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 27 May 2008 23:25:12 -0700 Message-ID: <483CFA7A.70906@zend.com> Date: Wed, 28 May 2008 01:23:54 -0500 Organization: Zend Technologies User-Agent: Thunderbird 2.0.0.14 (Windows/20080421) MIME-Version: 1.0 To: Stan Vassilev | FM CC: internals@lists.php.net References: <012701c8bb44$68f8b880$4401a8c0@foxbox> <48342DB7.2020108@isdg.net> <353f2c6f0805211141m9719d58xe0a128adbc14b656@mail.gmail.com> <353f2c6f0805211146p43d6aa96u9e6e03e82490b1c@mail.gmail.com> <325D72617BCF43A39670646B85FDB5FD@pc> <483BA7B1.2050008@zend.com> <9E2672AD195F4FE4BC6CB68AF9A453FA@pc> In-Reply-To: <9E2672AD195F4FE4BC6CB68AF9A453FA@pc> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 28 May 2008 06:25:12.0359 (UTC) FILETIME=[95A3DB70:01C8C08B] Subject: Re: [PHP-DEV] RFC: allow_call_pass_by_reference From: stas@zend.com (Stanislav Malyshev) Hi! > 1) At call time, nothing significes what is the caller passing, the > syntax is the same for passing reference or passing value, so it's prone There's no such thing as "passing reference or passing value". Same thing is always passed - zval. Only thing changing is does the function intend to modify it. That depends on function semantics. > I'd rather all those be explicit( require pass/return by val, require > pass/return by refr: "&", accepts both "&?"), and the strict cases throw > errors when the contract is not met at both sides. Believe me, you not, unless you want to turn PHP into C. -- Stanislav Malyshev, Zend Software Architect stas@zend.com http://www.zend.com/ (408)253-8829 MSN: stas@zend.com