Re: [PHP4BETA] compile error beta4 cgi version

From: Date: Mon, 21 Feb 2000 14:02:46 +0000
Subject: Re: [PHP4BETA] compile error beta4 cgi version
References: 1 2  Groups: php.version4 
Request: Send a blank email to php-version4+get-10583@lists.php.net to get a copy of this message
please apply the attached patch to cgi_main.c On Mon, Feb 21, 2000 at 02:48:41PM +0100, Stig-Ørjan Smelror wrote: > "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. > > > > I've reported this before without getting any response. > I usually don't compile as a CGI, but I had to try it and I got the > exact same error as you. > > I'm no C programmer, but it looks like a ")" missing ;)) > > > -- > Vennlig hilsen/Best Regards > Stig-Ørjan Smelror > Winther Computer Network DA http://www.winther.net > Stig.Orjan.Smelror@winther.net Teknisk Ansvarlig > Winther.Net ; Webhosting uten grenser. > > -- > PHP 4.0 Beta Mailing List <http://www.php.net/version4/> > To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net > For additional commands, e-mail: php4beta-help@lists.php.net > To contact the list administrators, e-mail: php4beta-admin@lists.php.net > -- Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!" Digital Collections Phone +49 40 235350 Fax +49 40 23535180 Hammerbrookstr. 93 20097 Hamburg / Germany

Index: cgi_main.c =================================================================== RCS file: /repository/php4/sapi/cgi/cgi_main.c,v retrieving revision 1.31 retrieving revision 1.30 diff -u -r1.31 -r1.30 --- cgi_main.c 2000/02/21 14:01:19 1.31 +++ cgi_main.c 2000/02/19 23:41:24 1.30 @@ -129,7 +129,7 @@ /* 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(request_info).request_uri:""), track_vars_array ELS_CC PLS_CC); + php_register_variable("PHP_SELF", (SG(request_info).request_uri ? SG(request_info).request_uri, track_vars_array ELS_CC PLS_CC); #else { char *sn;
« previous php.version4 (#10583) next »