How do I fix PHP module thread-safe/non-thread-safe mismatch?

前端 未结 1 1325
礼貌的吻别
礼貌的吻别 2020-12-11 09:09

This is out of the error log:

PHP Warning: PHP Startup: BOPEE Extension: Unable to initialize module
Module compiled with build ID=API20090626,TS,VC9
PHP             


        
相关标签:
1条回答
  • 2020-12-11 09:46

    In your case above, PHP itself is non-thread-safe (NTS), but the module is thread-safe (TS). The module is thread-safe because the Zend Thread-Safe ZTS constant is defined (either in the module's source code or in VS 2008's Preprocessor Definitions).

    Simply changing ZTS=1 to ZTS=0 does not work.
    You must completely remove the definition of ZTS.

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