少个
#if COMPILE_DL_YOUREXT 
ZEND_GET_MODULE(yourext) 
#endif

解决方案 »

  1.   

    手册里的例子(我也看不明白):/* include standard header */
    #include "php.h"/* declaration of functions to be exported */
    ZEND_FUNCTION(first_module);/* compiled function list so Zend knows what's in this module */
    zend_function_entry firstmod_functions[] =
    {
        ZEND_FE(first_module, NULL)
        {NULL, NULL, NULL}
    };/* compiled module information */
    zend_module_entry firstmod_module_entry =
    {
        STANDARD_MODULE_HEADER,
        "First Module",
        firstmod_functions,
        NULL, 
        NULL, 
        NULL, 
        NULL, 
        NULL,
        NO_VERSION_YET,
        STANDARD_MODULE_PROPERTIES
    };/* implement standard "stub" routine to introduce ourselves to Zend */
    #if COMPILE_DL_FIRST_MODULE
    ZEND_GET_MODULE(firstmod)
    #endif/* implement function that is meant to be made available to PHP */
    ZEND_FUNCTION(first_module)
    {
        long parameter;    if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "l", &parameter) == FAILURE) {
            return;
        }    RETURN_LONG(parameter);
    }
      

  2.   

    期待答案
    上边的代码我试过了,php.net 给的编译方法根本不能通过,路经都不相符,还会报少头文件alloca.h 等等.