Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:64096 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 69957 invoked from network); 29 Nov 2012 09:19:40 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 29 Nov 2012 09:19:40 -0000 Authentication-Results: pb1.pair.com header.from=pierre.php@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=pierre.php@gmail.com; spf=pass; 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: pierre.php@gmail.com X-Host-Fingerprint: 209.85.223.170 mail-ie0-f170.google.com Received: from [209.85.223.170] ([209.85.223.170:51436] helo=mail-ie0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 7F/A0-64969-BA827B05 for ; Thu, 29 Nov 2012 04:19:39 -0500 Received: by mail-ie0-f170.google.com with SMTP id k10so14185475iea.29 for ; Thu, 29 Nov 2012 01:19:37 -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=rXmpRkgFvaqI3bsYwiTkGQTMwGw11DHJrq/dgqX2woE=; b=yCXsfn4LUUFyfkGVjgnNbCbSzqlDXeqQGz1TIzYOIcTsf+2azIKv59vZ226AYWelDJ /LdeL2VhvYnaU5F1eswStvDIQO+ocaLHzV8Gp1iFXEguiRfLizm7DNosBFCuwVYBaRPW /l7kjl9HxXduEexO0jJm7alD5b2WWqB2jyQ5W+KIS+ZwOkaGkrb621tvJsOX6O11GREi k7NF4ev3DEUAEMGUdKwJrcur3xwE8/3G5uwJoDsi7VYNAonPSis+ura5dAh9ma6/eODf 2HWBctS8gPvnnxRpAnVPVowrDN8sQrOrgGV0p1xAzMXEi8mEXgjAmnhYmOnL5x5cFvI3 xy7Q== MIME-Version: 1.0 Received: by 10.50.213.73 with SMTP id nq9mr25182034igc.27.1354180777431; Thu, 29 Nov 2012 01:19:37 -0800 (PST) Received: by 10.64.33.143 with HTTP; Thu, 29 Nov 2012 01:19:37 -0800 (PST) In-Reply-To: <50B69A1D.8010703@akbkhome.com> References: <50B5D992.30609@lsces.co.uk> <0B09D94D-3BBC-491C-8E9D-74384E30383D@roshambo.org> <50B65363.4020100@gmail.com> <50B69797.5030209@gmail.com> <50B69A1D.8010703@akbkhome.com> Date: Thu, 29 Nov 2012 10:19:37 +0100 Message-ID: To: Mailing list Cc: PHP internals Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [PHP-DEV] ext/mysql in PECL and E_DEPRECATED From: pierre.php@gmail.com (Pierre Joye) hi Alan! On Thu, Nov 29, 2012 at 12:11 AM, Mailing list wrote: > .. annoying top posting... Why do you top post too then? :) > This is getting close to a good solution. > > ini option mysql_is_deprecated - can not be set in .ini/htaccess etc, only > by ini_set() - so hosters/distros can not fix it... Are you asking to add an option to do exactly the same than the error reporting option does? > Normally added just before mysql_connect... > > ini_set('mysql_is_deprecated', "I WILL NOT USE IT IN THE FUTURE"); eror_reporting(...); > mysql_connect(......) > Solves: > - Users will get warnings on upgrading - it can not be hidden by > hosters/distros etc. > - Users can easily disable the warning, however they will be explicitly > aware of the problem. Warning on install, on connect and in the doc is not enough? :) And once it is on pecl, we have the superseded/deprecated flag too there. It won't help for distros but distros will follow app leads, as usual. The only reason why distros still provide ext/mysql by default is because the apps require it by default. Cheers, -- Pierre @pierrejoye | http://blog.thepimp.net | http://www.libgd.org