Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78976 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 77728 invoked from network); 19 Nov 2014 01:50:39 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 19 Nov 2014 01:50:39 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.220.50 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.50 mail-pa0-f50.google.com Received: from [209.85.220.50] ([209.85.220.50:65093] helo=mail-pa0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id FD/2D-06737-E67FB645 for ; Tue, 18 Nov 2014 20:50:38 -0500 Received: by mail-pa0-f50.google.com with SMTP id bj1so5558468pad.37 for ; Tue, 18 Nov 2014 17:50:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=YQAS/JRLLfa88GLRbpRbcFy2jjhen9n1V9xZkaHJN80=; b=QtS4dQNFTt9i7UQZt4S+OJl5D6AgzRKq/9boGjvOd1iwEtNrjD2VkC6SMu+vVNgb87 +7GMLdFRwhbk7H13slnpfTJCMBVGqMbNFHooipq7KraDAry6mZxdW2dIBrz1P/hOw7DO 5oU/f9aeHp1j4IiClARD+LrH8vNx3WsRceLIvS5bACxShoZF/NMxja7Ird2Prk9dqjeS INKGzNYfx0tND5O+a8DjwUxmglPh6afJbMi8V3p0pBLFRgMMLVL9IIhHHsXvzImBjfcD Rl6ab0lfA7K3uD42Gfx/Ui+q59Diyj9QUG1B/w/puH+GFdcjU6a8u0gcbbkhv/oB4ZTC GVFw== X-Received: by 10.68.111.101 with SMTP id ih5mr42209418pbb.78.1416361835234; Tue, 18 Nov 2014 17:50:35 -0800 (PST) Received: from [192.168.2.145] (108-66-6-48.lightspeed.sntcca.sbcglobal.net. [108.66.6.48]) by mx.google.com with ESMTPSA id b16sm122963pdl.56.2014.11.18.17.50.34 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Nov 2014 17:50:34 -0800 (PST) Message-ID: <546BF769.9090408@gmail.com> Date: Tue, 18 Nov 2014 17:50:33 -0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 MIME-Version: 1.0 To: Marco Pivetta CC: Rowan Collins , PHP Internals List References: <546B0F62.1090705@gmail.com> <546B95F2.2050504@gmail.com> <546BBF4F.8040806@gmail.com> <919EDD0D-F0F4-430A-A84B-96A32DF45E7B@ajf.me> <546BCE21.7080403@gmail.com> <546BD0E8.6020609@gmail.com> <546BD206.9040800@gmail.com> <546BD451.4070909@gmail.com> <546BDEAE.2010102@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Default constructors From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Is there a `.phpt` test-case or discussion backing this? Backing what? Checking if side effects happen when evaluating args of non-existing ctor? Probably not, since nobody ever needed it (correct me if I'm wrong). There are many weird scenarios of what you could do with PHP that are not covered by tests because nobody ever thought anybody would care to know what happens if you do that. But I don't need tests to conclude it's intentional behavior - plain look at the code shows it very clearly, you don't make special case in ZEND_NEW to skip the ctor method call and write all the code around it if you don't mean to make special case to do just that. > I find this quite hard to believe, especially since following examples > are broken in php and working "as expected" (by me) in hhvm: > http://3v4l.org/4nhoq > > Yes, that's a bug :-) No, it is not :) We can do it all day but I think I've explained what is going on there. If you want to change it, feel free to do the RFC.