zendframework / zf1

This project reached its end-of-life on 2016-09-28. Contains conversion of ZF1 subversion repo to git, from version 15234 forward, and only containing master and release-1.12 branches and 1.12 tags.
https://framework.zend.com/blog/2016-06-28-zf1-eol.html
BSD 3-Clause "New" or "Revised" License
357 stars 800 forks source link

No PDO_MSSQL driver provided on development VM #499

Open pkelbert opened 9 years ago

pkelbert commented 9 years ago

After configuring a tests/TestConfiguration.php file to connect to a SQL Server, running the following command:

phpunit --verbose --stderr -d memory-limit=-1 Zend/Db/Adapter/Pdo/MssqlTest.php

gives the following message on each test method:

The mssql driver is not currently installed

Note: I needed to apply #494 and #498 for having PHPUnit and Pdo_Mssql tests running.

pkelbert commented 9 years ago

Another way to check the missing driver is by running all tests:

phpunit --verbose --stderr -d memory-limit=-1 Zend/Db/AllTests.php

which generates:

6) Zend_Db_Skip_Pdo_MssqlTest::
Skipping Pdo_Mssql: PDO driver 'mssql' is not available
pkelbert commented 9 years ago

PDO_MSSQL driver seems to no longer be supported by PHP but I can't find a changelog or a note about it.

According to official PDO drivers list -- http://php.net/manual/en/pdo.drivers.php -- there are currently two SQL Server drivers: PDO_SQLSRV for Windows hosts and PDO_DBLIB for Unix and Linux.