#include "mb_gpc.h"
#if HAVE_MBREGEX
-#include "php_mbregex.h"
-#endif
-
-#include "zend_multibyte.h"
-
-#if HAVE_ONIG
-#include "php_onig_compat.h"
-#include <oniguruma.h>
-#undef UChar
+# include "php_mbregex.h"
+# include "php_onig_compat.h"
+# include <oniguruma.h>
+# undef UChar
+ #if ONIGURUMA_VERSION_INT < 60800
+ typedef void OnigMatchParam;
+ #define onig_new_match_param() (NULL)
+ #define onig_initialize_match_param(x)
+ #define onig_set_match_stack_limit_size_of_match_param(x, y)
+ #define onig_free_match_param(x)
+ #define onig_search_with_param(reg, str, end, start, range, region, option, mp) \
- onig_search(reg, str, end, start, range, region, option)
++onig_search(reg, str, end, start, range, region, option)
+ #define onig_match_with_param(re, str, end, at, region, option, mp) \
- onig_match(re, str, end, at, region, option)
++onig_match(re, str, end, at, region, option)
+ #endif
-#elif HAVE_PCRE || HAVE_BUNDLED_PCRE
-#include "ext/pcre/php_pcre.h"
+#else
+# include "ext/pcre/php_pcre.h"
#endif
+
+#include "zend_multibyte.h"
/* }}} */
#if HAVE_MBSTRING
void *http_output_conv_mimetypes;
#if HAVE_MBREGEX
struct _zend_mb_regex_globals *mb_regex_globals;
+ zend_long regex_stack_limit;
#endif
- char *last_used_encoding_name;
+ zend_string *last_used_encoding_name;
const mbfl_encoding *last_used_encoding;
ZEND_END_MODULE_GLOBALS(mbstring)