On Thu, Nov 15, 2012 at 9:00 PM, Rasmus Lerdorf <ras...@lerdorf.com> wrote:
> On 11/15/2012 05:52 PM, Sherif Ramadan wrote:
>> This was the soft-deprecation notice that I believe was discussed
>> before the actual steps were to be taken to officially deprecate
>> ext/mysql. Yes, it's a suggestion, but a clearly worded suggestion,
>> none-the-less. It has been around for a little over 5 months now. I
>> think that's plenty of time to start alerting people to the fact that
>> the deprecation is coming.
>
> 5 months is nothing in PHP land when it comes to a feature like this.
> Like Anthony said, this is something that needs to be front and center
> everywhere. And like David said, it doesn't actually make much sense to
> deprecate the functions themselves. The extension is going to be moved
> out of core eventually, but if you still choose to use it by getting it
> from pecl throwing deprecation warnings from each call makes no sense.
>

Agreed, but this is "front and center", with all due respect. It's at
the top of every page.

It doesn't just alert you to the problem it alerts you to the
alternative solution. Every function in ext/mysql points you to its
counter-part in PDO and MySQLi.

5 months is nothing. I won't argue that it's substantial, but the next
year or two that it will take to make the move to 5.NEXT is
substantial enough.

> We need a frontpage notice. A big notice in the next UPGRADING file.
> There was nothing about this in the 5.4 UPGRADING file, for example. We
> also need tutorials showing how to migrate from mysql to mysqli and
> conference talks on the same showing some of the cooler things like
> async queries that you get by moving to a more modern API.
>
> -Rasmus

Agreed, migration is going to be a pain. Though I don't see why
getting a deprecation notice doesn't make sense. For those that have
been using ext/mysql for years they are more likely to notice a
deprecation error more quickly than they are message/note at php.net
in the manual. Think about it. You probably look at the manual for a
function you've been using for 10+ years, maybe once a month. You
probably check your error logs on a daily basis, though.

I'd say it makes good sense to inform those that have taken the steps
to upgrade that the extension they're using is deprecated and then
maybe they'll turn their attention to the manual for more information,
such as a migration guide, alternatives, advice, conferences, etc...

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to