I need to declare global variables in my extension, so they are available to ALL threads run by the server. I'll take care of threading issues in my extension manually. I found that in C to declare global variables you can use macros like this:
ZEND_BEGIN_MODULE_GLOBALS(counter)
long basic_counter_value;
ZEND_END_MODULE_GLOBALS(counter)
ZEND_DECLARE_MODULE_GLOBALS(counter)
How can I do this in php4delphi?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Thanks for a great library!
I need to declare global variables in my extension, so they are available to ALL threads run by the server. I'll take care of threading issues in my extension manually. I found that in C to declare global variables you can use macros like this:
ZEND_BEGIN_MODULE_GLOBALS(counter)
long basic_counter_value;
ZEND_END_MODULE_GLOBALS(counter)
ZEND_DECLARE_MODULE_GLOBALS(counter)
How can I do this in php4delphi?