Jawab Driver for PHP 5.4 RC

  • 05 Februari 2012 4:04
     
      Memiliki Kode

    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/?w3kmeukyz7morpx

    php_sqlsvr.dll (NTS, x86, VC9)
    http://www.mediafire.com/?jn7h0ozic2om6un

    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.

    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 )
    
    


    • Diedit oleh mjrpes 05 Februari 2012 4:07 better title
    • Diedit oleh mjrpes 06 Februari 2012 18:24
    •  

Semua Balasan