Page MenuHomePhabricator

The mysql extension is dead, long live PDO
Closed, DuplicatePublic

Description

I had a person come into MediaWiki-General and say they got this warning:

Deprecated: mysql_query(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/mediawiki-1.22.7/extensions/mat_ext/exportcsv.php on line 35

Turns out, the mysql extension for php is in fact being deprecated.

http://php.net/manual/en/changelog.mysql.php

It may be time to determine whether we want to use PDO or mysqli instead, or if we want to support both, or what.


Version: unspecified
Severity: normal

Details

Reference
bz69614

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 3:34 AM
bzimport added a project: Mediawiki-Rdbms.
bzimport set Reference to bz69614.
bzimport added a subscriber: Unknown Object (MLST).

If I interpret bug 45288 correctly, MySQLi is favored?

/var/www/mediawiki-1.22.7/extensions/mat_ext/exportcsv.php

Where can somebody find that in Git?!
At least the MW 1.22.9 tarball has no "mat_ext" under "/extensions".

Restricted Application added a subscriber: Aklapper. · View Herald TranscriptJan 12 2016, 9:02 AM
Seb35 added a subscriber: Seb35.Jun 1 2017, 12:44 AM

Duplicate of T120333?

Duplicate of T120333?

Looks so. (Action in core is most we can do, realistically?)