Home  |  Linux  | Mysql  | PHP  | XML
From:Jaroslav_Hanslík Date:Mon Jun  9 12:29:26 2008
Subject:APC for PHP 5.3 on Windows
Hi,

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

Regards
Jaroslav Hanslik

--- 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]))

Navigate in group php.apc.dev at sever news.php.net
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants