Re: ext/mysql in PECL and E_DEPRECATED
| From: | Pierre Joye | Date: | Thu, 29 Nov 2012 09:19:37 +0000 |
| Subject: | Re: ext/mysql in PECL and E_DEPRECATED | ||
| References: | 1 2 3 4 5 6 7 8 9 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-64096@lists.php.net to get a copy of this message | ||
hi Alan!
On Thu, Nov 29, 2012 at 12:11 AM, Mailing list <alan@akbkhome.com> 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