Menu

Building in PHP 5.3

ntworthy
2009-09-21
2013-04-24
  • ntworthy

    ntworthy - 2009-09-21

    In my experience, a small change to frame.cpp is required for php 5.3, as shown in the Unified Diff below. Some other projects use a conditional define to recreate ZVAL_ADDREF based on Z_ADDREF_P when it is not defined (presumably for backward compatibility).

    diff U3i C:/test/wx/wxPHP/frame.cpp C:/php-sdk/php53dev/vc9/x86/php5_3/ext/wxWidgets/frame.cpp
    -- C:/test/wx/wxPHP/frame.cpp Fri Jul 31 12:08:28 2009
    +++ C:/php-sdk/php53dev/vc9/x86/php5_3/ext/wxWidgets/frame.cpp Mon Sep 21 08:17:44 2009
    @@ -28519,7 +28519,7 @@
             {
                     zend_hash_index_find(HASH_OF(fc),0,(void**)&fc_obj);
                     zend_hash_index_find(HASH_OF(fc),1,(void**)&fc_name);
    -                ZVAL_ADDREF(*fc_obj);
    +                Z_ADDREF_P(*fc_obj);

                     ct = (*fc_name)->value.str.val;

     
  • Mr ABC

    Mr ABC - 2010-03-26

    hi, it would be nice if you public the dll for php5.3
    i try to compile myself, but no success
    thx

     
  • ntworthy

    ntworthy - 2010-08-26

    Win32 Extension DLL for php 5.3 (VC9 x86 Thread Safe) can be found here:

    http://github.com/nwsw/wxphp/downloads

     

Log in to post a comment.