internals:engine
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
internals:engine [2010/06/23 17:40] – __FILE__ and __LINE (info via tony) philip | internals:engine [2012/03/07 00:30] – [Extension Globals] cataphract | ||
---|---|---|---|
Line 53: | Line 53: | ||
Add your random stuff here. I'll move it/update it/fix it (Derick) | Add your random stuff here. I'll move it/update it/fix it (Derick) | ||
- | How to get __LINE__ and __FILE__? | + | How to get %%__LINE__ and __FILE__%%? |
* zend_get_executed_filename() and zend_get_executed_lineno() | * zend_get_executed_filename() and zend_get_executed_lineno() | ||
Line 114: | Line 114: | ||
</ | </ | ||
- | Note: do not use ZEND_INIT_MODULE_GLOBALS/ | + | Note: do not use ZEND_INIT_MODULE_GLOBALS/ |
- Now define the constructor and destructor functions: | - Now define the constructor and destructor functions: | ||
Line 129: | Line 129: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | The globals constructor and destructor are NOT execute per-request, | ||
Note: ZEND_MODULE_GLOBALS_CTOR_D will declare a function as receiving a zend_extname_globals*, | Note: ZEND_MODULE_GLOBALS_CTOR_D will declare a function as receiving a zend_extname_globals*, |
internals/engine.txt · Last modified: 2017/09/22 13:28 by 127.0.0.1