diff options
| -rw-r--r-- | src/php_snuffleupagus.h | 11 | ||||
| -rw-r--r-- | src/snuffleupagus.c | 8 |
2 files changed, 9 insertions, 10 deletions
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 @@ | |||
| 11 | #include "config.h" | 11 | #include "config.h" |
| 12 | #endif | 12 | #endif |
| 13 | 13 | ||
| 14 | #ifdef PHP_WIN32 | ||
| 15 | #include "win32/glob.h" | ||
| 16 | #else | ||
| 17 | #include <glob.h> | ||
| 18 | #endif | ||
| 19 | |||
| 14 | #include <errno.h> | 20 | #include <errno.h> |
| 15 | #include <fcntl.h> | 21 | #include <fcntl.h> |
| 16 | #include <inttypes.h> | 22 | #include <inttypes.h> |
| @@ -41,6 +47,7 @@ | |||
| 41 | #include "zend_extensions.h" | 47 | #include "zend_extensions.h" |
| 42 | #include "zend_hash.h" | 48 | #include "zend_hash.h" |
| 43 | #include "zend_string.h" | 49 | #include "zend_string.h" |
| 50 | #include "zend_smart_str.h" | ||
| 44 | #include "zend_types.h" | 51 | #include "zend_types.h" |
| 45 | #include "zend_vm.h" | 52 | #include "zend_vm.h" |
| 46 | 53 | ||
| @@ -150,9 +157,9 @@ HashTable *sp_internal_functions_hook; | |||
| 150 | HashTable *sp_eval_blacklist_functions_hook; | 157 | HashTable *sp_eval_blacklist_functions_hook; |
| 151 | 158 | ||
| 152 | #if PHP_VERSION_ID >= 80000 | 159 | #if PHP_VERSION_ID >= 80000 |
| 153 | zend_string* eval_source_string; | 160 | const zend_string* eval_source_string; |
| 154 | #else | 161 | #else |
| 155 | zval* eval_source_string; | 162 | const zval* eval_source_string; |
| 156 | #endif | 163 | #endif |
| 157 | 164 | ||
| 158 | ZEND_END_MODULE_GLOBALS(snuffleupagus) | 165 | ZEND_END_MODULE_GLOBALS(snuffleupagus) |
diff --git a/src/snuffleupagus.c b/src/snuffleupagus.c index 06b93e1..4c9e904 100644 --- a/src/snuffleupagus.c +++ b/src/snuffleupagus.c | |||
| @@ -1,11 +1,3 @@ | |||
| 1 | #ifdef PHP_WIN32 | ||
| 2 | #include "win32/glob.h" | ||
| 3 | #else | ||
| 4 | #include <glob.h> | ||
| 5 | #endif | ||
| 6 | |||
| 7 | #include "zend_smart_str.h" | ||
| 8 | |||
| 9 | #include "php_snuffleupagus.h" | 1 | #include "php_snuffleupagus.h" |
| 10 | 2 | ||
| 11 | #ifndef ZEND_EXT_API | 3 | #ifndef ZEND_EXT_API |
