Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78968 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 55556 invoked from network); 18 Nov 2014 23:11:07 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2014 23:11:07 -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.51 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.220.51 mail-pa0-f51.google.com Received: from [209.85.220.51] ([209.85.220.51:57759] helo=mail-pa0-f51.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id B8/29-06737-B02DB645 for ; Tue, 18 Nov 2014 18:11:07 -0500 Received: by mail-pa0-f51.google.com with SMTP id ey11so8713721pad.38 for ; Tue, 18 Nov 2014 15:11:04 -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:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=G0Shv6JoFGDEpNVv/FlF5MLiuInqltE1ve0hvF+Yqhw=; b=oq9Zk7UH28T95oRtDoKaFKTLia1tfzLOUKdP8Sy3nZhNK139IaBcfBPNU6482YHHAS JQJ83D92CXzIu3ik/X3Gs8/Q9kkVeZ6OftVtzIdJ89q8gDgWWzeyUwx6pZxrpChajiRm 0z9dSer58oa8uhpxFRVjXvnm3Lvucw9iJ3/LLF9GQdcwT0u3JAaQ+DdbbS9lxmGVJ9u5 7m6LMc4pPVxUdtCYTBqimBbyu61JoYrg0clmYkO18OcBj1PnQR4y5nqM4KJuYFlMCgy0 8mrVPtFYgvblxvlbfjpJMK4nYkt9tjgVr74zAW040/OoK9p7gEtpX4NpG00Xacklzq+R akEQ== X-Received: by 10.68.132.225 with SMTP id ox1mr40541147pbb.85.1416352264051; Tue, 18 Nov 2014 15:11:04 -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 mp5sm34278pbc.33.2014.11.18.15.11.02 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 18 Nov 2014 15:11:03 -0800 (PST) Message-ID: <546BD206.9040800@gmail.com> Date: Tue, 18 Nov 2014 15:11:02 -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: Rowan Collins , internals@lists.php.net 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> In-Reply-To: <546BD0E8.6020609@gmail.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC] Default constructors From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > "Been in PHP for a very long time" != "how it was intended to work". Can > you explain why this would be the intention of anyone designing the > language? Of course, been for a long time is not the same as intended. But if you look at how ZEND_NEW is done, it's clear it's intended. And the reason is simple - if there's no function, it's not really possible to initiate a function call and handle it properly, since the engine expects certain data there and there's nothing to provide that data. So, ZEND_NEW having no function just skips the whole function call thing altogether. > It's a mistake that was made a long time ago, and nobody's thought it > worth the effort to fix, but it's still a mistake, IMHO. It's not a mistake - at least, not an unintentional one, it was a decision. If you think the decision was wrong and it can be done better - cool, let's see the patch.