diff options
Diffstat (limited to 'src/php_snuffleupagus.h')
| -rw-r--r-- | src/php_snuffleupagus.h | 14 |
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 | |||
| 40 | extern zend_module_entry snuffleupagus_module_entry; | 42 | extern 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) | |||
| 64 | ZEND_TSRMLS_CACHE_EXTERN() | 66 | ZEND_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 | |||
| 67 | PHP_FUNCTION(check_disabled_function); | 81 | PHP_FUNCTION(check_disabled_function); |
| 68 | 82 | ||
| 69 | static inline void sp_terminate() { zend_bailout(); } | 83 | static inline void sp_terminate() { zend_bailout(); } |
