summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjvoisin2022-07-12 21:24:44 +0200
committerjvoisin2022-07-12 21:24:44 +0200
commit83014d7df165f8b8a9bf6dd4fde93fd1d42e4b7e (patch)
tree9c2ddc7373df727f60c45c9132230ea22c529464 /src
parent423e133c569b7d749cba3e1b97e9e138e5f0f892 (diff)
Minor refactorisation
Diffstat (limited to 'src')
-rw-r--r--src/php_snuffleupagus.h11
-rw-r--r--src/snuffleupagus.c8
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;
150HashTable *sp_eval_blacklist_functions_hook; 157HashTable *sp_eval_blacklist_functions_hook;
151 158
152#if PHP_VERSION_ID >= 80000 159#if PHP_VERSION_ID >= 80000
153zend_string* eval_source_string; 160const zend_string* eval_source_string;
154#else 161#else
155zval* eval_source_string; 162const zval* eval_source_string;
156#endif 163#endif
157 164
158ZEND_END_MODULE_GLOBALS(snuffleupagus) 165ZEND_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