and php_regex.h figures out which regex header files to include and
defines symbols that prevents other stuff from including the wrong versions
of regex header files.
#include <stdio.h>
#include "php.h"
#include "php3_string.h"
-#include "php_regex.h"
#include "reg.h"
unsigned char third_argument_force_ref[] = { 3, BYREF_NONE, BYREF_NONE, BYREF_FORCE };
#if REGEX
#include "regex/regex.h"
+#ifndef REGEX_H
#define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */
+#endif
+#ifndef REGEX_H_
#define _REGEX_H_ 1
+#endif
+#ifndef RX_H
#define _RX_H 1 /* Try defining these for Linux to */
+#endif
+#ifndef REGEXP_LIBRARY_H
#define __REGEXP_LIBRARY_H__ 1 /* avoid Apache including regex.h */
+#endif
+#ifndef H_REGEX
#define _H_REGEX 1 /* This one is for AIX */
+#endif
#else
#include <regex.h>
#endif
#include "php.h"
#include "php3_browscap.h"
#include "php_ini.h"
-#include "php_regex.h"
#include "zend_globals.h"
#include <stdio.h>
#include "php.h"
#include "php3_string.h"
-#include "php_regex.h"
#include "reg.h"
unsigned char third_argument_force_ref[] = { 3, BYREF_NONE, BYREF_NONE, BYREF_FORCE };
#include <sys/types.h>
#include "php.h"
-#include "php_regex.h"
#include "url.h"
#ifdef _OSD_POSIX
#define THREAD_LS
#endif
+#include "php_regex.h"
/* PHP's DEBUG value must match Zend's ZEND_DEBUG value */
#undef DEBUG
#if REGEX
#include "regex/regex.h"
+#ifndef REGEX_H
#define _REGEX_H 1 /* this should stop Apache from loading the system version of regex.h */
+#endif
+#ifndef REGEX_H_
#define _REGEX_H_ 1
+#endif
+#ifndef RX_H
#define _RX_H 1 /* Try defining these for Linux to */
+#endif
+#ifndef REGEXP_LIBRARY_H
#define __REGEXP_LIBRARY_H__ 1 /* avoid Apache including regex.h */
+#endif
+#ifndef H_REGEX
#define _H_REGEX 1 /* This one is for AIX */
+#endif
#else
#include <regex.h>
#endif
*/
/* $Id$ */
+#include "zend.h"
+#include "php.h"
+
#include "httpd.h"
#include "http_config.h"
#if MODULE_MAGIC_NUMBER > 19980712
#include "http_request.h"
#include "http_log.h"
-#include "zend.h"
-#include "php.h"
#include "php_ini.h"
#include "php_globals.h"
#include "SAPI.h"
*/
/* $Id$ */
+#include "php.h"
+
#include "httpd.h"
#include "http_config.h"
#if MODULE_MAGIC_NUMBER > 19980712
#include "http_log.h"
#include "zend.h"
-#include "php.h"
#include "php_ini.h"
#include "php_globals.h"
#include "SAPI.h"