From a9e96a378db3e3e86b8b310ebbf5a20f909f67fb Mon Sep 17 00:00:00 2001 From: Sammy Kaye Powers Date: Fri, 2 Oct 2020 15:19:07 -0700 Subject: Expose php_during_module_startup() and php_during_module_shutdown() This can be handy when trying to determine if it is safe to access request globals amongst other things. Closes GH-6265 --- main/php.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'main/php.h') diff --git a/main/php.h b/main/php.h index a747a99499..f796577249 100644 --- a/main/php.h +++ b/main/php.h @@ -311,6 +311,8 @@ void phperror(char *error); PHPAPI size_t php_write(void *buf, size_t size); PHPAPI size_t php_printf(const char *format, ...) PHP_ATTRIBUTE_FORMAT(printf, 1, 2); PHPAPI size_t php_printf_unchecked(const char *format, ...); +PHPAPI int php_during_module_startup(void); +PHPAPI int php_during_module_shutdown(void); PHPAPI int php_get_module_initialized(void); #ifdef HAVE_SYSLOG_H #include "php_syslog.h" -- cgit v1.2.1