Driver for PHP 5.4 RC
-
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)
http://www.mediafire.com/?w3kmeukyz7morpxphp_sqlsvr.dll (NTS, x86, VC9)
http://www.mediafire.com/?jn7h0ozic2om6unHaven'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.
pdo_dbh.cpp:36
typedef const zend_function_entry pdo_sqlsrv_function_entry;
core_stmt.cpp:526
int zr = zend_get_object_classname( param_z, (const char **)&class_name, &class_name_len TSRMLS_CC );
php_sqlsrv.h:77
#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 )
Semua Balasan
-
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?
thx!
v
-
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
Thanks!
Jonathan
This posting is provided 'AS IS' with no warranties, and confers no rights.- Disarankan sebagai Jawaban oleh Jonathan GuerinMicrosoft Employee 06 Februari 2012 22:53
- Ditandai sebagai Jawaban oleh Jonathan GuerinMicrosoft Employee 09 Februari 2012 18:01
-
06 Februari 2012 18:20Yes, sorry I forgot to mention that. I used the source available on the codeplex website. Changeset 55860.