summaryrefslogtreecommitdiff
path: root/src/php_snuffleupagus.h
diff options
context:
space:
mode:
authorjvoisin2017-09-20 10:51:22 +0200
committerjvoisin2017-09-21 16:09:28 +0200
commit6487590b4fd55dddd59b43f1fcf2ebd8d56f20ac (patch)
tree22ff7c8ee4b34a0978093afcc5b747073c625d06 /src/php_snuffleupagus.h
parent09a71ec9b889af34173e354ecba935a9db010a19 (diff)
Add travis
Diffstat (limited to 'src/php_snuffleupagus.h')
-rw-r--r--src/php_snuffleupagus.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/php_snuffleupagus.h b/src/php_snuffleupagus.h
index e7a3d59..9f85cc1 100644
--- a/src/php_snuffleupagus.h
+++ b/src/php_snuffleupagus.h
@@ -16,6 +16,7 @@
16 16
17#include "SAPI.h" 17#include "SAPI.h"
18#include "ext/standard/info.h" 18#include "ext/standard/info.h"
19#include "ext/pcre/php_pcre.h"
19#include "php.h" 20#include "php.h"
20#include "php_ini.h" 21#include "php_ini.h"
21#include "zend_hash.h" 22#include "zend_hash.h"
@@ -37,6 +38,7 @@
37#include "sp_upload_validation.h" 38#include "sp_upload_validation.h"
38#include "sp_utils.h" 39#include "sp_utils.h"
39 40
41
40extern zend_module_entry snuffleupagus_module_entry; 42extern zend_module_entry snuffleupagus_module_entry;
41#define phpext_snuffleupagus_ptr &snuffleupagus_module_entry 43#define phpext_snuffleupagus_ptr &snuffleupagus_module_entry
42 44
@@ -64,6 +66,18 @@ ZEND_END_MODULE_GLOBALS(snuffleupagus)
64ZEND_TSRMLS_CACHE_EXTERN() 66ZEND_TSRMLS_CACHE_EXTERN()
65#endif 67#endif
66 68
69#if HAVE_BUNDLED_PCRE
70 #include "ext/pcre/pcrelib/pcre.h"
71 #undef pcre_exec
72 #undef pcre_compile
73 #define sp_pcre_exec pcre_exec
74 #define sp_pcre_compile pcre_compile
75#else
76 #include "pcre.h"
77 #define sp_pcre_exec pcre_exec
78 #define sp_pcre_compile pcre_compile
79#endif
80
67PHP_FUNCTION(check_disabled_function); 81PHP_FUNCTION(check_disabled_function);
68 82
69static inline void sp_terminate() { zend_bailout(); } 83static inline void sp_terminate() { zend_bailout(); }