05 Februari 2012 4:04
I wanted to try out PHP 5.4 RC but there was no sql server driver available for this version. So I compiled it myself. Note that I am using the source for the 2.0 driver available from the CodePlex website. Here are the files if you'd like to download them yourself:
php_pdo_sqlsvr.dll (NTS, x86, VC9)
php_sqlsvr.dll (NTS, x86, VC9)
Haven't done any crazy tests with it but it seems to work fine on a simple test. I did have to make a couple tweaks to the source to get it to compile against the latest snapshot.
typedef const zend_function_entry pdo_sqlsrv_function_entry;
int zr = zend_get_object_classname( param_z, (const char **)&class_name, &class_name_len TSRMLS_CC );
#if PHP_MAJOR_VERSION > 5 || PHP_MAJOR_VERSION < 5 || ( PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION < 2 ) || ( PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION > 4 )
06 Februari 2012 16:43
Does this 5.4 version address the memory leak issue identified : http://social.msdn.microsoft.com/Forums/en-US/sqldriverforphp/thread/7e419559-0d8f-4cea-a2ae-28b71a800f63 ?
If so, is it possible to step the changes you've made to 5.3.9?
06 Februari 2012 18:10
I believe that mjrpes used our current 2.0.1 source at Codeplex and made minor modifications to compile against 5.4. We will release the updated 3.0 driver with the memory leak fix with SQL Server 2012: http://www.microsoft.com/sqlserver/en/us/default.aspx
This posting is provided 'AS IS' with no warranties, and confers no rights.
06 Februari 2012 18:20Yes, sorry I forgot to mention that. I used the source available on the codeplex website. Changeset 55860.