We have an app here that has been in development (and now in production) for more than a year. Which has in total over 500 mysql_* calls.
Is it worth it to switch all of the mysql_* in the code to mysqli_*
Is it worth chasing all the bugs that might (and most probably will) come about?
I see from questions like this: Changing this from MySQL to MySQLi? that just adding i after every mysql* call can lead me to alot of errors. Is it worth my time?
mysql_* will probably around for the long haul (even amongst rumors of deprecation), so it it really worth any programmers time to methodically switch over?
Quoting the manual for
ext/mysqli:If you need just one of those features and can afford the refactoring, then yes, go for it. If you dont need any of those features then dont do it. There is no reason to refactor if there is no benefits.
On a sidenote, the rumors are true. ext/mysql will likely be deprecated (although no one can say when at the time of this writing. It certainly wont be deprecated with 5.4. and it will likely be available as a pecl extension forever) In any case, you shouldnt be starting any new projects with ext/mysql anymore when you have a superior extension to start with.
Also see http://blog.ulf-wendel.de/2012/php-mysql-why-to-upgrade-extmysql/