diff options
| author | jvoisin | 2018-02-05 17:27:45 +0100 |
|---|---|---|
| committer | GitHub | 2018-02-05 17:27:45 +0100 |
| commit | 4cbca117a3f2ef2d6695504970378ec4c483d19f (patch) | |
| tree | 2fe9d10ddf5fdff1c1c0f4cf0cf7cbb16d274e27 /src/php_snuffleupagus.h | |
| parent | f0a956e825a83ff3a58d4714a92fbb945f6c8841 (diff) | |
Compatibility layer for pcre2
This should close #129
Diffstat (limited to 'src/php_snuffleupagus.h')
| -rw-r--r-- | src/php_snuffleupagus.h | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/php_snuffleupagus.h b/src/php_snuffleupagus.h index 95f271d..52bcc93 100644 --- a/src/php_snuffleupagus.h +++ b/src/php_snuffleupagus.h | |||
| @@ -24,6 +24,7 @@ | |||
| 24 | #include "zend_string.h" | 24 | #include "zend_string.h" |
| 25 | #include "zend_extensions.h" | 25 | #include "zend_extensions.h" |
| 26 | 26 | ||
| 27 | #include "sp_pcre_compat.h" | ||
| 27 | #include "sp_list.h" | 28 | #include "sp_list.h" |
| 28 | #include "sp_tree.h" | 29 | #include "sp_tree.h" |
| 29 | #include "sp_var_parser.h" | 30 | #include "sp_var_parser.h" |
| @@ -71,18 +72,6 @@ ZEND_END_MODULE_GLOBALS(snuffleupagus) | |||
| 71 | ZEND_TSRMLS_CACHE_EXTERN() | 72 | ZEND_TSRMLS_CACHE_EXTERN() |
| 72 | #endif | 73 | #endif |
| 73 | 74 | ||
| 74 | #if HAVE_BUNDLED_PCRE | ||
| 75 | #include "ext/pcre/pcrelib/pcre.h" | ||
| 76 | #undef pcre_exec | ||
| 77 | #undef pcre_compile | ||
| 78 | #define sp_pcre_exec pcre_exec | ||
| 79 | #define sp_pcre_compile pcre_compile | ||
| 80 | #else | ||
| 81 | #include "pcre.h" | ||
| 82 | #define sp_pcre_exec pcre_exec | ||
| 83 | #define sp_pcre_compile pcre_compile | ||
| 84 | #endif | ||
| 85 | |||
| 86 | PHP_FUNCTION(check_disabled_function); | 75 | PHP_FUNCTION(check_disabled_function); |
| 87 | PHP_FUNCTION(eval_blacklist_callback); | 76 | PHP_FUNCTION(eval_blacklist_callback); |
| 88 | 77 | ||
