size
[1]
[2]
[3]
|
sizeof(zend_module_entry) |
The size in bytes of the structure.
|
zend_api
[1]
[2]
[3]
|
ZEND_MODULE_API_NO |
The version of the Zend API this module was compiled against.
|
zend_debug
[1]
[2]
[3]
|
ZEND_DEBUG |
A flag indicating whether the module was compiled with debugging turned
on.
|
zts
[1]
[2]
[3]
|
USING_ZTS |
A flag indicating whether the module was compiled with ZTS (TSRM) enabled
(see Memory management).
|
ini_entry
[1]
[3]
|
NULL |
This pointer is used internally by Zend to keep a non-local reference to
any INI entries declared for the module.
|
deps
[3]
|
NULL |
A pointer to a list of dependencies for the module.
|
name
|
"mymodule" |
The name of the module. This is the short name, such as "spl"
or "standard".
|
functions
|
mymodule_functions |
A pointer to the module's function table, which Zend uses to expose
functions in the module to user space.
|
module_startup_func
|
PHP_MINIT(mymodule) |
A callback function that Zend will call the first time a module is loaded
into a particular instance of PHP.
|
module_shutdown_func
|
PHP_MSHUTDOWN(mymodule) |
A callback function that Zend will call the when a module is unloaded
from a particular instance of PHP, typically during final shutdown.
|
request_startup_func
|
PHP_RINIT(mymodule) |
A callback function that Zend will call at the beginning of each request.
|
request_shutdown_func
|
PHP_RSHUTDOWN(mymodule) |
A callback function that Zend will call at the end of each request.
|
info_func
|
PHP_MINFO(mymodule) |
A callback function that Zend will call when the phpinfo()
function is called.
|
version
|
NO_VERSION_YET |
A string giving the version of the module, as specified by the module
developer. It is recommended that the version number be either in the
format expected by version_compare() (e.g. "1.0.5-dev"), or a
CVS or SVN revision number (e.g. "$Rev$").
|
globals_size
[1]
[4]
[5]
[6]
|
sizeof(zend_mymodule_globals) |
The size of the data structure containing the module's globals, if any.
|
globals_id_ptr
[1]
[4]
[5]
[6]
[7]
|
&mymodule_globals_id |
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_ptr
[1]
[4]
[5]
[6]
[8]
|
&mymodule_globals |
globals_ctor
[4]
[5]
[6]
|
PHP_GINIT(mymodule) |
This funtion is called to initialize a module's globals before
any module_startup_func.
|
globals_dtor
[4]
[5]
[6]
|
PHP_GSHUTDOWN(mymodule) |
This funtion is called to deallocate a module's globals after
any module_shutdown_func.
|
post_deactivate_func
[4]
|
ZEND_MODULE_POST_ZEND_DEACTIVATE_N(mymodule) |
This function is called by Zend after request shutdown. It is rarely used.
|
module_started
[1]
[9]
[4]
|
0 |
These fields are used for Zend's internal tracking information.
|
type
[1]
[9]
[4]
|
0 |
handle
[1]
[9]
[4]
|
NULL |
module_number
[1]
[9]
[4]
|
0 |