diff --git a/internals2/structure/modstruct.xml b/internals2/structure/modstruct.xml index 24b5ff70b1..c8bb25b76c 100644 --- a/internals2/structure/modstruct.xml +++ b/internals2/structure/modstruct.xml @@ -1,5 +1,5 @@ - + The zend_module structure @@ -91,13 +91,247 @@ struct _zend_module_entry { #define STANDARD_MODULE_HEADER_EX sizeof(zend_module_entry), ZEND_MODULE_API_NO, ZEND_DEBUG, USING_ZTS #define STANDARD_MODULE_HEADER \ STANDARD_MODULE_HEADER_EX, NULL, NULL -#define ZE2_STANDARD_MODULE_HEADER \ - STANDARD_MODULE_HEADER_EX, ini_entries, NULL +#define NO_VERSION_YET NULL #define STANDARD_MODULE_PROPERTIES_EX 0, 0, NULL, 0 +#define STANDARD_MODULE_PROPERTIES \ + NO_MODULE_GLOBALS, NULL, STANDARD_MODULE_PROPERTIES_EX +#define NO_MODULE_GLOBALS 0, NULL, NULL, NULL ]]> + + + + + size + + + The size in bytes of the structure. This will always be to + sizeof(zend_module_entry). + + + + + + zend_api + + + The version of the Zend API this module was compiled against. This is + always the constant ZEND_MODULE_API_NO. + + + + + + zend_debug + zts + + + Flags indicating whether the module was compiled with debugging turned on + or ZTS (TSRM) enabled. These are always the constants + ZEND_DEBUG and USING_ZTS. + + + + + + ini_entry + + + This pointer is used by Zend internally to keep a non-local reference to + any INI entries declared for the module. It is managed by Zend and will + always be given the initial value &null;. + + + + + + deps + + + A pointer to a list of dependencies for the module. + + + + + + name + + + The name of the module. This is the short name, such as + "spl" or "standard". + + + + + + functions + + + A pointer to the module's function table, which Zend uses to expose + functions in the module to user space. + + + + + + module_startup_func + module_shutdown_func + request_startup_func + request_shutdown_func + + + These are callback functions that Zend will call at particular times + during PHP's processing. Specifically, at first initialization, at final + shutdown, at the start of each particular request, and at the end of each + request. + + + + + + info_func + + + This is another callback function, which Zend will call when a script + invokes phpinfo. + + + + + + version + + + A string giving the version of the module, as specified by the module + developer. It is strongly recommended that the + version number be either in the format expected by + version_compare, or a CVS or SVN revision number + (i.e. "$Rev$"). + + + + + + globals_size + + + The size of the globals structure for this module, if any. + + + + + + globals_id_ptr + globals_ptr + + + Only one of these two fields will exist, depending upon whether the + USING_ZTS constant is &true;. The former is an index + into TSRM's allocation table for the module's globals, and the + latter is a pointer directly to the globals. + + + + + + globals_ctor + globals_dtor + + + These functions are called by Zend to set up and destroy a module's + globals. + + + + + + post_deactivate_func + + + This function is called by Zend after request shutdown. It is rarely used. + + + + + + module_started + type + handle + module_number + + + These fields are used for Zend's internal tracking information and must be + considered reserved. + + + + + + STANDARD_MODULE_HEADER_EX + + + This macro is used by module developers to start the + zend_module structure when the module will specify INI + entries, dependencies, or both. + + + + + + STANDARD_MODULE_HEADER + + + This macro is used to start the zend_module + structure when the developer will not specify INI entries or dependencies. + + + + + + NO_VERSION_YET + + + This macro should be used by module developers to specify that the module + has no version. It is not recommended that this be used. + + + + + + STANDARD_MODULE_PROPERTIES_EX + + + This macro is used by module developers to end the + zend_module when the module will make use of + automatic globals, a post-deactivate callback, or both. + + + + + + STANDARD_MODULE_PROPERTIES + + + This macro is used by module developers to end the + zend_module when the module will not make use of + automatic globals or a post-deactivate callback. + + + + + + NO_MODULE_GLOBALS + + + This macro is used by module developers to specify values that tell Zend + that the module has no global variables. + + + + +