PATCH Re: [PHP4BETA] compile error beta4 cgi version
| From: | Homme R. Bitter | Date: | Mon, 21 Feb 2000 14:01:25 +0000 |
| Subject: | PATCH Re: [PHP4BETA] compile error beta4 cgi version | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-10581@lists.php.net to get a copy of this message | ||
This should fix the compile if the force_redirect is switched on in the
CGI version...
*** sapi/cgi/cgi_main.c Mon Feb 21 14:48:52 2000
--- sapi/cgi/cgi_main.c.orig Mon Feb 21 13:20:35 2000
***************
*** 128,135 ****
char *pi;
/* Build the special-case PHP_SELF variable for the CGI version */
! #if FORCE_CGI_REDIRECT
! php_register_variable("PHP_SELF", (SG(request_info).request_uri ?
SG(re
quest_info).request_uri, track_vars_array ELS_CC PLS_CC);
#else
{
char *sn;
--- 128,135 ----
char *pi;
/* Build the special-case PHP_SELF variable for the CGI version */
! #ifdef FORCE_CGI_REDIRECT
! php_register_variable("PHP_SELF", (SG(request_info).request_uri ?
SG(re
quest_info).request_uri : ""), track_vars_array ELS_CC PLS_CC);
#else
{
char *sn;
On Mon, 21 Feb 2000, Homme R. Bitter wrote:
>
> Hi there,
>
> I just tried to compile the php4.0b4 dist for stand alone CGI support.
> It dies with this error:
>
> gcc -DHAVE_CONFIG_H -I. -I/usr/src/redhat/BUILD/php-4.0b4/sapi/cgi -I../..
> -I../../Zend -I/usr/src/redhat/BUILD/php-4.0b4 -I/usr/include/mysql
> -D_REENTRANT -fPIC -c cgi_main.c && touch cgi_main.lo
> cgi_main.c: In function `sapi_cgi_register_variables':
> cgi_main.c:132: parse error before `)'
> make[3]: *** [cgi_main.lo] Error 1
>
> Seems to me that someone has forgotten to update the CGI dir after
> changing macros or something, I'm not a coder and I can't patch this
> myself.
>
> If someone has has a fix for this, please mail me, I'd like to try out the
> CGI version with our webserver here, WN.
>
> Regards,
>
> Homme R. Bitter
>
> *NIX admin, BOFH, MCSE, parttime divine entity.
> ---------------------------draw-conclusion-here------------------------
> Statistically proven: there are 79 Dollar stores in each individual town
>
> (S) This signature is swingware, I let you use mine if you let me use
> yours.....
>
>
>
Homme R. Bitter
*NIX admin, BOFH, MCSE, parttime divine entity.
---------------------------draw-conclusion-here------------------------
Statistically proven: there are 79 Dollar stores in each individual town
(S) This signature is swingware, I let you use mine if you let me use
yours.....