Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80640 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4405 invoked from network); 16 Jan 2015 12:54:46 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 16 Jan 2015 12:54:46 -0000 Authentication-Results: pb1.pair.com smtp.mail=stelian.mocanita@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=stelian.mocanita@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.173 as permitted sender) X-PHP-List-Original-Sender: stelian.mocanita@gmail.com X-Host-Fingerprint: 209.85.217.173 mail-lb0-f173.google.com Received: from [209.85.217.173] ([209.85.217.173:33271] helo=mail-lb0-f173.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 95/B0-00273-41A09B45 for ; Fri, 16 Jan 2015 07:54:44 -0500 Received: by mail-lb0-f173.google.com with SMTP id b6so5465907lbj.4 for ; Fri, 16 Jan 2015 04:54:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=exAoSi5lZccN8YiFs7dGNYdn/qA/K8C1xylf/KrXW7Y=; b=URgsJ/lSlnRUPaWQX5Q7+nGHpKBtlAFebzpYxBkL5tfw2rvJ8jEfJ8XRk0ZouA3YN3 shAHVr1Vvdz0KkS7lPyusKFglMlRxQV4+5qDgyGuAqLYHNBm5B/Egv/wPbf947jcy0eX Ycez8MINIR7VBO+DUuetmi1RMlQ8gr7guZnCcJxpz2Fw0f1TrbV8D5ZkUe3QDvjVXX6S BQycQ9YOJngcP6IaUfcfYwwGh1k66gHrBTO8yShxpEBIhOGYVPNDp7S4zkJJqwlw59Dk CAcUjWgEqfaNPRgCogV7RfsE7q0+2OnOgGeX5gRiZic2zJ3pSuJ+KlkEtT+QB36wicY4 siJA== MIME-Version: 1.0 X-Received: by 10.152.206.41 with SMTP id ll9mr15600886lac.62.1421412880323; Fri, 16 Jan 2015 04:54:40 -0800 (PST) Sender: stelian.mocanita@gmail.com Received: by 10.112.73.71 with HTTP; Fri, 16 Jan 2015 04:54:40 -0800 (PST) In-Reply-To: References: <0DD30A0D-E7CA-4150-83E0-8FD46635279C@ajf.me> Date: Fri, 16 Jan 2015 13:54:40 +0100 X-Google-Sender-Auth: t0W8K0xY6ogwqWfAR_7XZg-yN_4 Message-ID: To: Derick Rethans Cc: Levi Morrison , Andrea Faulds , internals Content-Type: multipart/alternative; boundary=001a1133af6acf9b23050cc479fb Subject: Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors From: stelianm@php.net (Stelian Mocanita) --001a1133af6acf9b23050cc479fb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello everyone, Might I suggest community feedback on this one in a reddit thread? My guess is that even though a lot of applications out there are still PHP 4 ctor reliant, a very low percentage of these applications might be under active development. Best, Stelian On Fri, Jan 16, 2015 at 12:28 PM, Derick Rethans wrote: > On Thu, 15 Jan 2015, Levi Morrison wrote: > > > On Thu, Jan 15, 2015 at 9:55 AM, Andrea Faulds wrote: > > > > > > Upon further thought, I=E2=80=99m not super-enthusiastic about this. = As has > > > been pointed out, it=E2=80=99s a pretty serious BC break, whether cod= e can > > > be automatically updated or not. PHP 4 constructors may be obsolete, > > > but an awful lot of code uses them. > > > > > > A better solution, IMO, might be simply to add a deprecation notice. > > > This would make it obvious during development if you=E2=80=99ve accid= entally > > > defined a PHP4 constructor, and would encourage migration away from > > > them, but wouldn=E2=80=99t prevent existing code from working. > > > > Possibly. The reality of my position is that I am unhappy about our > > current constructor situation. Having `__construct` and only > > half-heartedly supporting old-style constructors for the next several > > years (maybe ten?) does not sound good at all. > > > > Removing one of the constructors is a nicer end product than fully > > supporting both, in my opinion, which is why I proposed dropping it. > > Instead of just dropping it, which would likely generate odd bugs, > declaring an old style constructor should *tell* you it's no longer > working- perhaps with as strong of an error as an > E_COMPILE_ERROR=E2=80=94atleast for PHP 7. Just removing it support would= , IMO, > be silly. > > cheers, > Derick > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > --001a1133af6acf9b23050cc479fb--