Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:80851 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 54419 invoked from network); 20 Jan 2015 03:22:35 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 20 Jan 2015 03:22:35 -0000 Authentication-Results: pb1.pair.com smtp.mail=pencap@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=pencap@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.170 as permitted sender) X-PHP-List-Original-Sender: pencap@gmail.com X-Host-Fingerprint: 209.85.223.170 mail-ie0-f170.google.com Received: from [209.85.223.170] ([209.85.223.170:43449] helo=mail-ie0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 07/51-41341-9F9CDB45 for ; Mon, 19 Jan 2015 22:22:34 -0500 Received: by mail-ie0-f170.google.com with SMTP id y20so8789573ier.1 for ; Mon, 19 Jan 2015 19:22:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=IUDlNceyL+je31SDsqsKLZWQ9tROY82sm0x7lvEkVAQ=; b=n+BWlAuV+f+rEgfe8cYHSkDS8b9fLjbWr8k/oFV5Pz/l9dbvPwb+TX1n724gojzogi n8E5IAuDzKsDB9glTlYLgHaOCJqlgJhlpQgMlfbPWlSo3AWQ6sK2xtCNM3/gpa2DbbZ2 wPbjq1pHBryQ42RUMF8CONEGcQvbW1BqmLoskxeRWrHORvqOGhzf4nOGhJIerKCBXrGP HFfBM34hIvH+UqGkHyDJOJOJenUX0xuzK4q22315g/bNh+cjgwCGRrXYdl4qCYxva8nD xFTbUxOByP9yuSa60KjeOOjQABON6LVJ6JKlIJiEWCiXZ3q8m1sQpiEdesagN1Iprk6I BFqA== MIME-Version: 1.0 X-Received: by 10.51.17.11 with SMTP id ga11mr23559171igd.0.1421724151104; Mon, 19 Jan 2015 19:22:31 -0800 (PST) Received: by 10.50.248.45 with HTTP; Mon, 19 Jan 2015 19:22:30 -0800 (PST) In-Reply-To: <0DD30A0D-E7CA-4150-83E0-8FD46635279C@ajf.me> References: <0DD30A0D-E7CA-4150-83E0-8FD46635279C@ajf.me> Date: Mon, 19 Jan 2015 21:22:30 -0600 Message-ID: To: Andrea Faulds Cc: Levi Morrison , internals Content-Type: multipart/alternative; boundary=001a1135f140fecf27050d0cf256 Subject: Re: [PHP-DEV] [RFC] Remove PHP 4 Constructors From: pencap@gmail.com (Mike Willbanks) --001a1135f140fecf27050d0cf256 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Andrea, On Thu, Jan 15, 2015 at 10:55 AM, Andrea Faulds wrote: > Hey Levi, > > Upon further thought, I=E2=80=99m not super-enthusiastic about this. As h= as been > pointed out, it=E2=80=99s a pretty serious BC break, whether code 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 accidentally d= efined a > PHP4 constructor, and would encourage migration away from them, but > wouldn=E2=80=99t prevent existing code from working. > > Thoughts? > I would be against a deprecation notice here. In fact I think it should either be do nothing or remove them entirely. I know this thread has become out of control but as a user of PHP 3, 4 and 5; a framework developer; and a engineering executive I find that the PHP 4 style constructors to be an ignorance that I am forced to currently deal with. The amount of information in this post is vast and I don't feel I need to go into details. However, I support this proposal 100% as do I feel most of the open source community. Items that are still out there relying on PEAR and other packages should remain on PHP 5 or even less. We have better solutions now such as composer which has changed the ecosystems reliance on items such as PEAR. Developers that are relying on PEAR have other issues to date than simply what would happen with PHP 7 as not all PEAR packages work well with PHP 5 at this time especially the latest releases. PEAR is a thing that has come and gone. Legacy code that still remains with PHP 4 style constructors should upgrade to the latest. Language evolve and we need to keep pushing the bar forward. As a personal note, PHP has slowly been moving towards the background for certain applications for JavaScript (nodejs) and I feel for PHP to remain it's competitive market it needs to evolve more as a leading language. PHP was great about this between 3, 4 and 5. 7 must do the same thing otherwise I feel like it will lead to a slow death much like the perl of old. Regards, Mike --001a1135f140fecf27050d0cf256--