SQLSRV 3.2 is now available from Microsoft that supports PHP 5.6
http://www.microsoft.com/en-us/download/details.aspx?id=20098
PDO_SQLSRV est un pilote qui implémente l'interface PDO (PHP Data Objects) pour permettre l'accès depuis PHP aux bases de données MS SQL Server (version SQL Server 2005 et supérieures) et SQL Azure.
L'extension PDO_SQLSRV est activée en ajoutant les bibliothèques DLL appropriées dans votre dossier d'extension PHP et en ajoutant les entrées correspondantes dans le fichier php.ini. PDO_SQLSRV est livré avec 8 pilotes, dont 4 dédiés au support de PDO.
La version la plus récente du pilote est disponible au téléchargement ici : » téléchargement SQLSRV. Les sources du polite sont hébergées dans un » dépôt public.
Pour plus d'information à propos des exigences système, consultez le chapitre sur les » exisgences systèmes SQLSRV.
L'extension PDO_SQLSRV n'est compatible qu'avec PHP sur Windows. Pour Linux, reportez-vous à ODBC ainsi qu'au » driver ODBC du serveur SQL Microsoft pour Linux.
Les constantes ci-dessous sont
définies par ce pilote et seront seulement disponibles lorsque l'extension
aura été compilée dans PHP ou chargée dynamiquement du moteur d'exécution.
De plus, ces constantes spécifiques au pilote devraient être utilisées seulement
si vous utilisez ce pilote. En utilisant les attributs spécifiques à un pilote
avec un autre pilote pourrait causer un comportement inattendu.
PDO::getAttribute() pourrait être utilisé pour obtenir
l'attribut PDO::ATTR_DRIVER_NAME
pour vérifier le
pilote, si votre code peut fonctionner sur des pilotes multiples.
PDO::SQLSRV_TXN_READ_UNCOMMITTED
(int)
PDO::SQLSRV_TXN_READ_COMMITTED
(int)
PDO::SQLSRV_TXN_REPEATABLE_READ
(int)
PDO::SQLSRV_TXN_SNAPSHOT
(int)
PDO::SQLSRV_TXN_SERIALIZABLE
(int)
PDO::SQLSRV_ENCODING_BINARY
(int)
PDO::SQLSRV_ENCODING_SYSTEM
(int)
PDO::SQLSRV_ENCODING_UTF8
(int)
PDO::SQLSRV_ENCODING_DEFAULT
(int)
PDO::SQLSRV_ATTR_QUERY_TIMEOUT
(int)
PDO::SQLSRV_ATTR_DIRECT_QUERY
(int)
SQLSRV 3.2 is now available from Microsoft that supports PHP 5.6
http://www.microsoft.com/en-us/download/details.aspx?id=20098
An updated driver compatible with both PHP 7.0 and Linux is available on the PHP-7.0-Linux branch of https://github.com/Microsoft/msphpsql/
This is more up to date and supports some additional features over the ODBC / DBLIB drivers.
It is currently considered an 'Early Technical Preview' and hence has some limitations, but in my experience it has been stable.
As of 12/12/2014, Microsoft has officially released Version 3.1.
Support for 5.5 has 4 drivers
php_pdo_sqlsrv_55_nts.dll
php_pdo_sqlsrv_55_ts.dll
php_sqlsrv_55_nts.dll
php_sqlsrv_55_ts.dll
Note: Version 3.1 now supports PHP 5.5 and requires Microsoft ODBC Driver 11 (or higher)
You can downlod the new driver from
http://www.microsoft.com/en-us/download/details.aspx?id=20098
Watch out!
If you use PDO SQLSRV on windows 7, using 32 bit php on XAMMP, you might encounter driver problems : "This extension requires the Microsoft ODBC Driver 11 for SQL Server to communicate with SQL Server"
The reason, Microsoft 32-bit ODBC driver doesn't install properly on 64-bit Windows 7.
Check the solution to PDO SQLSRV driver problem here in StackOverflow
https://stackoverflow.com/a/46245990/1330248