April 20th, 2012, 01:47 AM
PHP Version 5.4.0 and MSSQL
I've upgraded from PHP version 5.2 to PHP version 5.4 and are not able to load / find mssql extension ?
How do I use MSSQL in version 5.4 ??
Is MSSQL not supported in this version or am I (hopingly) missing something ???
April 20th, 2012, 02:38 AM
It's not "mssql" anymore. You have to find the SQLSRV extension (as published by Microsoft) but I'm not sure if it works for 5.4 yet.
April 20th, 2012, 03:49 AM
Thanks, will go back to version 5.2
Originally Posted by requinix
April 20th, 2012, 04:18 AM
January 9th, 2013, 05:38 AM
You need use FreeTDS library. Its simple. Reffer link: ht tp://docs.moodle.org/24/en/Installing_MSSQL_for_PHP
Originally Posted by Dieter
But library php_dblib.dll for php 5.4 I not found.
I compiled it. You may download it here: ht tp://inethub.olvi.net.ua/ftp/pub/soft/programming/php/ms%20sql%20driver%20for%20%20php%205.4.10/
Its compiled with VC9 with nts.
January 9th, 2013, 01:40 PM
I checked: SQLSRV 3.0.1 (released a bit before this thread was started) supports PHP 5.4 so I myself would just go with that.
January 9th, 2013, 04:12 PM
But! You need install Microsoft Native Client, and other people says: 3.0 drivers work ONLY with MS SQL 2012. Its true?
January 9th, 2013, 04:48 PM
True. Meanwhile (as far as I can tell) FreeTDS requires the .NET Framework 1.1.
But it does support SQL Server <2008 and does work on Linux so there's that in its favor.
January 9th, 2013, 05:24 PM
No. Its work on Windows too. And work with MS SQL 2012 EXPRESS EDITION for me. I use PHP 5.4.10.
ADD: And its don't need rewrite mssql_* functions to sqlsrv_*.