Last modified: 2014-05-27 01:44:23 UTC
The MySQL native driver (mysqlnd) is a remplacement driver for the PHP library. There are various advantages to mysqlnd, some of them listed here: http://dev.mysql.com/downloads/connector/php-mysqlnd/ Can we discuss this ?
What are the expected benefits of that switch?
There's at least one I just ran into. Functions like mysqli_result::fetch_all()[1] are only available with mysqlnd. I'm not sure why that is, but reading different bits of documentation leads me to believe that it is: * backwards compatible * considered to be an improvement (directer connection, better performance, different kind of bindings, dropping things in the backend it kept for legacy reasons) [1] http://php.net/mysqli_fetch_all [2] http://nl1.php.net/manual/en/intro.mysqlnd.php
Fatal error: Call to undefined method mysqli_result::fetch_all() in /data/project/orphantalk/src/mw-tool-orphantalk/lib/basetool/GlobalFunctions.php on line 181 Seems not an uncommon pitfall. [1] http://stackoverflow.com/a/11664672/319266 [2] http://stackoverflow.com/a/6694603/319266
I suppose the easiest way to do this is to just upgrade to PHP 5.4.