PHP 4.0.6RC1 - Win32 build of php4apache fails
| From: | Marc Boeren | Date: | Wed, 16 May 2001 07:58:05 +0000 |
| Subject: | PHP 4.0.6RC1 - Win32 build of php4apache fails | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-55440@lists.php.net to get a copy of this message | ||
> >I rolled 4.0.6RC1. It is ready for testing.
> >http://www.php.net/~andi/php-4.0.6RC1.tar.gz
> >
> >Please everyone take sometime to make sure this is release worthy :)
>
> cgi version for win32 builds fine, apache module build gives errors:
>
> F:\home\cvs-php\php-4.0.6RC1\sapi\apache\mod_php4.c(310) : error C2065:
> 'apache_globals' : undeclared identifier
> F:\home\cvs-php\php-4.0.6RC1\sapi\apache\mod_php4.c(310) : error C2223:
> left of '->in_request' must point to struct/union
>
> The offending function:
>
> static int php_apache_sapi_activate(SLS_D)
> {
> request_rec *r = ((request_rec *) SG(server_context));
>
> /*
> * For the Apache module version, this bit of code registers a
> cleanup
> * function that gets triggered when our request pool is destroyed.
> * We need this because at any point in our code we can be
> interrupted
> * and that may happen before we have had time to free our memory.
> * The php_request_shutdown function needs to free all outstanding
> allocated
> * memory.
> */
> block_alarms();
> register_cleanup(((request_rec *) SG(server_context))->pool, NULL,
> php_apache_request_shutdown, php_request_shutdown_for_exec);
> >>>(line 310) AP(in_request)=1;
> unblock_alarms();
>
> /* Override the default headers_only value - sometimes "GET"
> requests should actually only
> * send headers.
> */
> SG(request_info).headers_only = r->header_only;
> return SUCCESS;
> }
>
> It misses the
> APLS_FETCH();
> at the beginning of the function, after adding this it builds fine.
>
>
> Cheerio, Marc.
>
>