APC for PHP 5.3 on Windows

[email protected] (Jaroslav HanslĂ­k) Mon, 09 Jun 2008 20:29:26 +0200
Newsgroups php.apc.dev
Message-ID <[email protected]>
Hi,

the attached patch should repair the compilation of APC for PHP 5.3 on 
Windows.

Regards
Jaroslav Hanslik
apc.diff (text/plain, 485 B)
--- apc.c	2008-05-13 17:51:46.000000000 +0200
+++ apc-patched.c	2008-06-09 20:17:30.375000000 +0200
@@ -32,7 +32,12 @@
 /* $Id: apc.c,v 3.22 2008/05/13 15:51:46 gopalv Exp $ */
 
 #include "apc.h"
-#include <regex.h>      /* for POSIX regular expressions */
+/* for POSIX regular expressions */
+#if PHP_MAJOR_VERSION == 5 && PHP_MINOR_VERSION >= 3
+	#include <ext/ereg/php_regex.h>
+#else
+	#include <regex.h>
+#endif
 #include "php.h"
 
 #define NELEMS(a) (sizeof(a)/sizeof((a)[0]))