Home  |  Linux  | Mysql  | PHP  | XML
From:shire Date:Wed Jun 18 11:54:54 2008
Subject:Re: [APC-DEV] APC for PHP 5.3 on Windows
I went ahead and checked this in on CVS HEAD.  I don't have a Windows  
machine to really test this on, so let me know if there's any  
remaining issues.

-shire

On Jun 9, 2008, at 11:29 AM, Jaroslav Hanslík wrote:

> 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]))
>
> -- 
> APC Development Mailing List (http://pecl.php.net/APC)
> To unsubscribe, visit: http://www.php.net/unsub.php

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