Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:78939 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 71694 invoked from network); 18 Nov 2014 12:23:13 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Nov 2014 12:23:13 -0000 Authentication-Results: pb1.pair.com header.from=derick@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=derick@php.net; spf=unknown; sender-id=unknown Received-SPF: unknown (pb1.pair.com: domain php.net does not designate 82.113.146.227 as permitted sender) X-PHP-List-Original-Sender: derick@php.net X-Host-Fingerprint: 82.113.146.227 xdebug.org Linux 2.6 Received: from [82.113.146.227] ([82.113.146.227:46820] helo=xdebug.org) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A6/B0-63415-F2A3B645 for ; Tue, 18 Nov 2014 07:23:12 -0500 Received: from localhost (localhost [IPv6:::1]) by xdebug.org (Postfix) with ESMTPS id 78E87E202D; Tue, 18 Nov 2014 12:23:08 +0000 (GMT) Date: Tue, 18 Nov 2014 12:23:08 +0000 (GMT) X-X-Sender: derick@whisky.home.derickrethans.nl To: Stanislav Malyshev cc: PHP Internals In-Reply-To: <546B0F62.1090705@gmail.com> Message-ID: References: <546B0F62.1090705@gmail.com> User-Agent: Alpine 2.11 (DEB 23 2013-08-11) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Subject: Re: [PHP-DEV] [RFC] Default constructors From: derick@php.net (Derick Rethans) On Tue, 18 Nov 2014, 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. You write: > Also, this can lead to more subtle BC breaks. Consider this code: And then further on: > No backward incompatible changes, sin... that can not be both right. cheers, Derick