大家好,感谢邀请,今天来为大家分享一下zend开发网站源码分享的问题,以及和如何打开网站源码的一些困惑,大家要是还不太明白的话,也没有关系,因为接下来将为大家分享,希望可以帮助到大家,解决大家的问题,下面就开始吧!
这些内容并不复杂,在开发PHP扩展时只要愿意去了解一下相关的部分就可以了,在这里,我给出一个简单的介绍。
PHP扩展中负责提供信息的结构体为zend_module_entry,该结构体的定义如下:
struct_zend_module_entry{\nunsignedshortsize;\nunsignedintzend_api;\nunsignedcharzend_debug;\nunsignedcharzts;\nconststruct_zend_ini_entry*ini_entry;\nconststruct_zend_module_dep*deps;\nconstchar*name;\nconststruct_zend_function_entry*functions;\nint(*module_startup_func)(INIT_FUNC_ARGS);\nint(*module_shutdown_func)(SHUTDOWN_FUNC_ARGS);\nint(*request_startup_func)(INIT_FUNC_ARGS);\nint(*request_shutdown_func)(SHUTDOWN_FUNC_ARGS);\nvoid(*info_func)(ZEND_MODULE_INFO_FUNC_ARGS);\nconstchar*version;\nsize_tglobals_size;\nelse\nvoid*globals_ptr;\ndefineZEND_GET_MODULE(name)\\\nBEGIN_EXTERN_C()\\\nZEND_DLEXPORTzend_module_entry*get_module(void){return&name_module_entry;}\\\nEND_EXTERN_C()
如果你还想了解更多这方面的信息,记得收藏关注本站。
