summaryrefslogtreecommitdiff
path: root/ext/ereg/php_regex.h
diff options
context:
space:
mode:
Diffstat (limited to 'ext/ereg/php_regex.h')
-rw-r--r--ext/ereg/php_regex.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/ext/ereg/php_regex.h b/ext/ereg/php_regex.h
index 91cbd994c4..62279c4c08 100644
--- a/ext/ereg/php_regex.h
+++ b/ext/ereg/php_regex.h
@@ -2,7 +2,15 @@
#define _PHP_REGEX_H
#if REGEX == 1
+/* get aliases */
+#include "regex/regex_extra.h"
#include "regex/regex.h"
+
+/* get rid of aliases */
+#define PHP_NO_ALIASES
+#include "regex/regex_extra.h"
+#undef PHP_NO_ALIASES
+
#ifndef _REGEX_H
#define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */
#endif