Compiling a php extension with Visual Studio 2008, MODULE ID don't match with php

前端 未结 3 943
夕颜
夕颜 2021-01-06 13:30

After compiling my own php extension using VC9 (2008) and VC10 (2010) using the next steps:

http://blog.slickedit.com/2007/09/creating-a-php-5-extension-with-visual-

相关标签:
3条回答
  • 2021-01-06 14:03

    The official documentation for building PHP and extensions is in the wiki.

    You should create a config.w32 file to your extension and build it through the command line. That's the method that's officially supported.

    0 讨论(0)
  • 2021-01-06 14:07

    And it is strongly recommended to use the same CRT (VC9) than php itself. There are known issues when mixed CRTs are used between apache, php or its extensions.

    0 讨论(0)
  • 2021-01-06 14:09

    Ok, I found the solution:

    You must add a preprocessor constant into php-src/Zend/zend_build.h:

    #define PHP_COMPILER_ID "VC9"
    

    And it will work.


    Solution found here: http://forums.zend.com/viewtopic.php?f=55&t=2045

    0 讨论(0)
提交回复
热议问题