Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64108 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 29684 invoked from network); 29 Nov 2012 17:29:03 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Nov 2012 17:29:03 -0000 Authentication-Results: pb1.pair.com smtp.mail=kris.craig@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=kris.craig@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.217.170 as permitted sender) X-PHP-List-Original-Sender: kris.craig@gmail.com X-Host-Fingerprint: 209.85.217.170 mail-lb0-f170.google.com Received: from [209.85.217.170] ([209.85.217.170:55795] helo=mail-lb0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 06/75-08727-D5B97B05 for ; Thu, 29 Nov 2012 12:29:02 -0500 Received: by mail-lb0-f170.google.com with SMTP id j14so12183946lbo.29 for ; Thu, 29 Nov 2012 09:28:59 -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=RPY816StKHUdMyY9CkFGZg07yNKAyBV44Gvdhy2+iBA=; b=QzfcmWDJc/ySvFiOrKMOEhIPMVzf/5CBbfm+iPkSIZsfWh0HBkO/AbLwS0+t+z2Bby pHvi74ps35IB0GsBC44BM2hSkz0NVRKkIT41loX9QFw2la/4bO+S5NmLl7Zb6SQceMuG UmVTPvsAxwIjtY/pAJkb4w5rE0JctYD1pT1NSMMHD3nw8XNetaPX4xy0JDTKEKbPknFX IEXFndRYYhWfggbZZDBRmx+t82cgjwCxSv8NQHDA+bcj4puSq7nFyTqVVZ9/B31izmSt 3y6BskBwsnjJ+ZfcLFSNjKE1iXePBwhOva5erYp45IYHfl6RkDVC/lWK5N+vn2aAbOht Oalg== MIME-Version: 1.0 Received: by 10.152.145.169 with SMTP id sv9mr22727896lab.2.1354210139079; Thu, 29 Nov 2012 09:28:59 -0800 (PST) Received: by 10.152.114.2 with HTTP; Thu, 29 Nov 2012 09:28:58 -0800 (PST) In-Reply-To: References: <50B5D992.30609@lsces.co.uk> Date: Thu, 29 Nov 2012 09:28:58 -0800 Message-ID: To: Jan Ehrhardt Cc: internals@lists.php.net Content-Type: multipart/alternative; boundary=e89a8f2350974a85de04cfa59ec3 Subject: Re: [PHP-DEV] Re: [VOTE] ext/mysql deprecation in 5.5 From: kris.craig@gmail.com (Kris Craig) --e89a8f2350974a85de04cfa59ec3 Content-Type: text/plain; charset=ISO-8859-1 On Thu, Nov 29, 2012 at 7:46 AM, Jan Ehrhardt wrote: > Kris Craig in php.internals (Wed, 28 Nov 2012 12:33:55 -0800): > >We also know that E_DEPRECATED works when other approaches do not. I > would > >point you all to the famous example of Drupal 7, which would break > >completely due to a flurry of E_DEPRECATED warnings (if display_errors was > >set to on) being triggered as of 5.3 due to their continued use of > >magic_quotes_gpc and magic_quotes_runtime. When Drupal 8 was released > some > >time later, the code was fixed so that it no longer used those out-dated > >functions. > > http://drupal.org/community-initiatives/drupal-core > Drupal 8 will not be released before August 2013. Maybe in the current > core the E_DEPRECATED warnings are gone, but certainly not in many of > the modules. > > People are still switching to Drupal7. And Drupal7 throws the watchdog > full with E_DEPRECATED warnings when it is running onder PHP5.4. The > views module has issues with PHP 5.4, but some modules even let Drupal7 > under PHP5.4 crash completely: > http://drupal.org/node/1831402 > > If E_DEPRECATED stays in ext/mysql even after it has moved to PECL, the > result will be that more and more people turn E_DEPRECATED warnings off. > I think you're forgetting though that the same applies to PHP itself. Many repos still default to PHP 5.1.x. Adoption always tends to be a lagging factor. I don't see any evidence to suggest that Drupal and other distros have even slower adoption rates than PHP. In fact, the opposite seems to be true from what I've observed. In other words, most of these people you referenced who are still using Drupal 6 are probably still using an older version of PHP as well. Therefore, most people using Drupal 7 probably don't have to worry about the deprecation because they haven't upgraded to 5.3.3+ yet. But it did affect enough people that it forced the Drupal devs to update their code to conform to the changes in PHP. We shouldn't be targetting future PHP releases to sync with older distros simply because many people still use them. Given that most people tend to use older versions of PHP as well, I believe it's safe to say that the two cancel one another out. --Kris --e89a8f2350974a85de04cfa59ec3--