Re: [Wikitech-l] phpunit: "Extension mysql is required"?

2016-07-13 Thread Legoktm
Hi,

On 07/13/2016 08:19 AM, Daniel Barrett wrote:
> @requires extension mysql
> 
> and this extension is gone in PHP 7.0.

The old "mysql" extension was removed in favor of the "mysqli"
extension. MediaWiki should automatically use mysqli when it's available.

-- Legoktm

___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Re: [Wikitech-l] phpunit: "Extension mysql is required"?

2016-07-13 Thread Daniel Barrett
Never mind - solved it. I discovered that one of my phpunit test files contains

@requires extension mysql

and this extension is gone in PHP 7.0.

DanB


___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

[Wikitech-l] phpunit: "Extension mysql is required"?

2016-07-13 Thread Daniel Barrett
[Tried mediawiki-l, now trying wikitech-l]

What does it mean when I run MediaWiki unit tests on my server, and phpunit 
skips some tests with this error:

  Extension mysql is required

This is on a fully working MediaWiki server with mySQL installed, running on 
Ubuntu 16.04.

$ mysql --version
mysql  Ver 14.14 Distrib 5.7.12, for Linux (x86_64) using  EditLine wrapper

$ dpkg -s php-mysql
Package: php-mysql
Status: install ok installed
...

Thank you,
DanB



___
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l