Re: [APC-DEV] APC for PHP 5.3 on Windows

[email protected] (shire) Wed, 18 Jun 2008 10:54:54 -0700
Newsgroups php.apc.dev
Message-ID <[email protected]>
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