Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78965 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50717 invoked from network); 18 Nov 2014 22:57:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2014 22:57:50 -0000 Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.208 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.208 imap2-3.ox.privateemail.com Received: from [192.64.116.208] ([192.64.116.208:59469] helo=imap2-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 23/18-06737-CEECB645 for ; Tue, 18 Nov 2014 17:57:49 -0500 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 312868C0085; Tue, 18 Nov 2014 17:57:46 -0500 (EST) X-Virus-Scanned: Debian amavisd-new at imap2.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap2.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Xoq4CJTZi804; Tue, 18 Nov 2014 17:57:46 -0500 (EST) Received: from oa-res-27-29.wireless.abdn.ac.uk (oa-res-27-29.wireless.abdn.ac.uk [137.50.27.29]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id 739018C0082; Tue, 18 Nov 2014 17:57:45 -0500 (EST) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 8.1 \(1993\)) In-Reply-To: <546BCE21.7080403@gmail.com> Date: Tue, 18 Nov 2014 22:57:43 +0000 Cc: Rowan Collins , internals@lists.php.net Content-Transfer-Encoding: quoted-printable Message-ID: <40CBCA4F-5FBE-4687-9DD3-E74F5F7EFD97@ajf.me> References: <546B0F62.1090705@gmail.com> <546B95F2.2050504@gmail.com> <546BBF4F.8040806@gmail.com> <919EDD0D-F0F4-430A-A84B-96A32DF45E7B@ajf.me> <546BCE21.7080403@gmail.com> To: Stanislav Malyshev X-Mailer: Apple Mail (2.1993) Subject: Re: [PHP-DEV] [RFC] Default constructors From: ajf@ajf.me (Andrea Faulds) > On 18 Nov 2014, at 22:54, Stanislav Malyshev = wrote: >=20 > Hi! >=20 >> In fact, it *is* a bug: https://bugs.php.net/bug.php?id=3D67829 >=20 > It is most definitely not a bug, it's the intended behavior that has > been coded so and has been in PHP for a very long time. You may argue = it > should not be so, and it should be changed, that's fine, but it's not > what is called a bug - it's not a mistake, it's how it was intended to > work. Are you sure it was intended to work this way, with the parameters not = being evaluated at all? Is that actually useful in any context? Function = calls always evaluate their arguments, do they not? PHP is a language = with functions that have side effects. > Changing this is a feature request, for which you're welcome to > make an RFC. I'm not sure though it would be very useful change since > IMO it would break BC for no actual gain to any practical code. But if > you think you're wrong RFC is definitely an option. Alright then, it=92s a =93feature=94 that needs fixing, not a bug. -- Andrea Faulds http://ajf.me/