On Wed, 2012-11-14 at 00:23 +0100, Ángel González wrote: > - The extension is not broken. The problem is the bad usage. > It can be used safely, and good developers have been doing > so for ages, by creating php wrappers. > In magic quotes, the work has been the opposite. The developers > had been detecting the feature in php and *disabling* it.
ext/mysql is hard to maintain code. It is not not getting new features. Keeping it up to date for working with new versions of libmysql or mysqlnd versions is work, we probably could spend that time better. > - How many hosts/ISPs have mysqli installed? > I don't have actual numbers, but it used to be much less common > than ext/mysql, which means that unless they those customers > won't be able to run the applications forced to migrate to mysqli. I have barely seen systems having ext/mysql but not mysqli. > - A "magic porting script" has been mentioned on this thread. > It is not on the docs, so it is really as if it didn't exist for the 99% > of the > population. Moreover, there is even a FAQ stating that there are no > migration > scripts right now: > http://php.net/manual/en/faq.databases.php#faq.databases.mysql.deprecated > > It should be linked from every mysql page. Providing a patch to docs is relatively easy )(-> edit.php.net) the mentioned script is a few years old, one should check and test it before adding it to the docs, though. Maybe you can test it? > - If you are sure your ext/mysql usage is safe, it is not possible to > disable the warning > for this functions but keep the other E_DEPRECATED. If the EDEPRECATED is thrown during connect only most people won't see it anyways. As a typical pattern looks like if (!@mysql_connect(....)) { log-and_print( mysql_error() ); } And therefore hiding raw error messages. > - I'm quite sure that there will be a number of problems where the > replacements have > issues, but they are unlikely to be fixed if not forced. For instance, I > remember a php script using mysql that from reading the code, it shouldn't be > working but it somehow did. Completely unmaintained, of course. You have years till the last PHP version with ext/mysql will be out of support. Even then it is likely that one could ext/mysql still working on newer versions of PHP (PHP barely changes core extension APIs so people can fetch it from pecl or something, if there is a strong enough demand we might keep aneye on it for awhile on pecl, too) If there are real concerns about mysqli or people struggling while migrating they can feel free to talk to us and we can assist. johannes -- Johannes Schlüter, MySQL Connectors Team, ORACLE Corporation -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php