Last modified: 2014-05-27 01:44:23 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T55117, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 53117 - Switch to using the mysqlnd driver in PHP
Switch to using the mysqlnd driver in PHP
Status: NEW
Product: Wikimedia Labs
Classification: Unclassified
tools (Other open bugs)
unspecified
All All
: Normal enhancement
: ---
Assigned To: Marc A. Pelletier
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-20 20:36 UTC by Pleclown
Modified: 2014-05-27 01:44 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Pleclown 2013-08-20 20:36:20 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 ?
Comment 1 Marc A. Pelletier 2013-08-29 20:02:18 UTC
What are the expected benefits of that switch?
Comment 2 Krinkle 2014-05-27 01:41:58 UTC
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
Comment 3 Krinkle 2014-05-27 01:42:51 UTC
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
Comment 4 Yuvi Panda 2014-05-27 01:44:23 UTC
I suppose the easiest way to do this is to just upgrade to PHP 5.4.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links