Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:79032 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 50102 invoked from network); 20 Nov 2014 10:25:17 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Nov 2014 10:25:17 -0000 Authentication-Results: pb1.pair.com header.from=dmitry@zend.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=dmitry@zend.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain zend.com designates 209.85.220.179 as permitted sender) X-PHP-List-Original-Sender: dmitry@zend.com X-Host-Fingerprint: 209.85.220.179 mail-vc0-f179.google.com Received: from [209.85.220.179] ([209.85.220.179:46713] helo=mail-vc0-f179.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CD/46-14967-C81CD645 for ; Thu, 20 Nov 2014 05:25:16 -0500 Received: by mail-vc0-f179.google.com with SMTP id le20so1200821vcb.24 for ; Thu, 20 Nov 2014 02:25:12 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Wny2zDmX4la8WQQMY3+Kh7xKBV7Fzh6iwRqUZ3C3OwU=; b=Lt6ZfY8pRrk223BW/zef8VzZZVFEqN2SBIRlOT+eg8kPEbBn8HH06VEg0YV4BStklg U85NT8zwC68D7wPhmTLs9OGl2VQEfPYBjQIpDRPb5bH/aP/vzevy92+cOSWxNC++PS5Y /wjdSi7nWCfqvpDTtNjRqdu1GXIHPbuy7qpQezJUNlhJNQWq0gYVg4JzRh/d7CevI5bR USe02Nabdyerb7/4ijCar60R5P9cId1OUAxTpZmXjlHHvQb7b4OuUnGsYaxnmIRbBtUS myKpNloDkzKyLwHx2pOVPfgWc5Ao6cSZbGJdNufCK7zSWpw4ZIoONNAqMKwsQPUuW4QR P4JQ== X-Gm-Message-State: ALoCoQmiV2mUBvd7TnoPud30DFGAkuyJc8M2k7/AaW2FjreaVuzIj2hWnPLS+QG3w+8wMiDV9bO8Rqz1EzDcv3DsyfNlVjBeFnk5HBfesj4frkswAHn1fdzNBDnua+4gpX5fhL3IQxKowVg4bQqvEoQpuJ+StETAcw== MIME-Version: 1.0 X-Received: by 10.52.27.193 with SMTP id v1mr3872628vdg.78.1416479112894; Thu, 20 Nov 2014 02:25:12 -0800 (PST) Received: by 10.52.176.231 with HTTP; Thu, 20 Nov 2014 02:25:12 -0800 (PST) In-Reply-To: <546B0F62.1090705@gmail.com> References: <546B0F62.1090705@gmail.com> Date: Thu, 20 Nov 2014 14:25:12 +0400 Message-ID: To: Stanislav Malyshev Cc: PHP Internals Content-Type: multipart/alternative; boundary=20cf307c9ab65b3104050847be66 Subject: Re: [PHP-DEV] [RFC] Default constructors From: dmitry@zend.com (Dmitry Stogov) --20cf307c9ab65b3104050847be66 Content-Type: text/plain; charset=UTF-8 Hi Stas, Sorry, I didn't follow all the discussions. I think the idea is good. I'm not sure about implementation. Additional check for ZEND_NULL_FUNCTION in DO_FCALL may be expensive. I think it must be better to use special predefined function (see "zend_pass_function" usage in zend_vm_def.h). Thanks. Dmitry. On Tue, Nov 18, 2014 at 12:20 PM, Stanislav Malyshev wrote: > Hi! > > I'd like to propose the following RFC, which in short would allow any > method to call parent ctor (and some other methods) even if such is not > explicitly defined: > > https://wiki.php.net/rfc/default_ctor > > The reasons are outlined in detail in the RFC and here: > http://php100.wordpress.com/2014/11/04/default-constructors/ > > The patch is not finished yet but seems to be working fine, I'll add it > to the RFC this week as soon as I finish it. I'd like to put idea out > there in the meantime and hear what everybody thinks about it. > > Thanks, > Stas > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --20cf307c9ab65b3104050847be66--