summaryrefslogtreecommitdiff
path: root/ext/mbstring/php_onig_compat.h
diff options
context:
space:
mode:
authorMoriyoshi Koizumi <moriyoshi@php.net>2008-07-16 02:29:14 +0000
committerMoriyoshi Koizumi <moriyoshi@php.net>2008-07-16 02:29:14 +0000
commita9c4d663403d83f44603e29614dab92021c24764 (patch)
tree875019766e481e0d2d18a38df5013b02fbe07e0d /ext/mbstring/php_onig_compat.h
parent46928b468c8dac4166cc13072e42cc24489dab5d (diff)
downloadphp-git-a9c4d663403d83f44603e29614dab92021c24764.tar.gz
- Added a new configure option --with-onig=[DIR] that allows the extension
to link to the external oniguruma library. - Prevent libmbfl files from being installed when --with-libmbfl is specified. - Fixed mb_ereg_replace() to work with unicode strings.
Diffstat (limited to 'ext/mbstring/php_onig_compat.h')
-rw-r--r--ext/mbstring/php_onig_compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/mbstring/php_onig_compat.h b/ext/mbstring/php_onig_compat.h
new file mode 100644
index 0000000000..c97ba0c5cb
--- /dev/null
+++ b/ext/mbstring/php_onig_compat.h
@@ -0,0 +1,8 @@
+#ifndef _PHP_ONIG_COMPAT_H
+#define _PHP_ONIG_COMPAT_H
+
+#define re_pattern_buffer php_mb_re_pattern_buffer
+#define regex_t php_mb_regex_t
+#define re_registers php_mb_re_registers
+
+#endif /* _PHP_ONIG_COMPAT_H */