From 83014d7df165f8b8a9bf6dd4fde93fd1d42e4b7e Mon Sep 17 00:00:00 2001 From: jvoisin Date: Tue, 12 Jul 2022 21:24:44 +0200 Subject: Minor refactorisation --- src/php_snuffleupagus.h | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'src/php_snuffleupagus.h') diff --git a/src/php_snuffleupagus.h b/src/php_snuffleupagus.h index a4a0ed4..95caa65 100644 --- a/src/php_snuffleupagus.h +++ b/src/php_snuffleupagus.h @@ -11,6 +11,12 @@ #include "config.h" #endif +#ifdef PHP_WIN32 +#include "win32/glob.h" +#else +#include +#endif + #include #include #include @@ -41,6 +47,7 @@ #include "zend_extensions.h" #include "zend_hash.h" #include "zend_string.h" +#include "zend_smart_str.h" #include "zend_types.h" #include "zend_vm.h" @@ -150,9 +157,9 @@ HashTable *sp_internal_functions_hook; HashTable *sp_eval_blacklist_functions_hook; #if PHP_VERSION_ID >= 80000 -zend_string* eval_source_string; +const zend_string* eval_source_string; #else -zval* eval_source_string; +const zval* eval_source_string; #endif ZEND_END_MODULE_GLOBALS(snuffleupagus) -- cgit v1.3