Re: PHP 4.0 Bug #7096 Updated: CGI-Error

From: Date: Wed, 01 Nov 2000 13:06:56 +0000
Subject: Re: PHP 4.0 Bug #7096 Updated: CGI-Error
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-36630@lists.php.net to get a copy of this message
Hallo, first at all i was reading http://hoohoo.ncsa.uiuc.edu/cgi/ i downloaded the source-code of php4 and after looking for a few minutes i found the error. You gays should somewhere tell the other people that php4 has a build in error, and whants the scriptname as PATH_TRANSLATED to execute it. At least that is what the comment in the source of php4 says. As far as i know, is this because the apache server software for NT has this error. That means all other serversoftware has to build in the same error for the PATH_TRANSLATED variable. Whould it not be better to ask for the server-software environment variable and go the standard way if it is not apache for NT. As far as i know, is the PATH_TRANSLATED environment variable the physical translation of the PATH_INFO environment variable, and not the script filename. The test with the commandline was just to tell you gays, that this is not the normal behaver. After i changed the PATH_TRANSLATED variable to the scriptname i could run php from my webserver. Sorry about my bad english. Mfg. T.Hauck Telefon : 07041/860686 ab 18.00 Uhr Email: T.Hauck@jana-server.ocm.de T.Hauck@t-online.de Web: http://www.jana-server.ocm.de/ http://home.t-online.de/home/T.Hauck/ ----- Original Message ----- From: "Bug Database" <php-dev@lists.php.net> To: <MajorTom@web.de> Sent: Wednesday, November 01, 2000 11:15 AM Subject: PHP 4.0 Bug #7096 Updated: CGI-Error > ID: 7096 > Updated by: dbeu > Reported By: MajorTom@web.de > Status: Closed > Bug Type: *General Issues > Assigned To: > Comments: > > seems like you're not knowing what you're doing :) > if you want to emulate a "real" cgi i suggest that you'd read yourself into the cgi spec. > http://hoohoo.ncsa.uiuc.edu/cgi/ > a "real" cgi is invoked via environment variables, and not via commandline options, if you set the request_method without, specifying path_translated it wont work. > > <<< > set REQUEST_METHOD=GET > set PATH_TRANSLATED=c:\path\to\php.doc > php.exe > >>> > > Previous Comments: > -------------------------------------------------------------------------- - > > [2000-10-09 05:08:53] MajorTom@web.de > PHP4 does not make any output, as sone the REQUEST_METHODE environment variable is set. > > Test phpfile call: test.php > conntens: <?phpinfo();?> (on a line by it self) > > open a dosbox window and type > c:path to phpphp.exe test.php > > this will work , you see the output! > > now type: > SET REQUEST_METHOD=GET > c:path to phpphp.exe test.php > > the output looks like this: > X-Powered-By: PHP/4.0.2 > Content-type: text/html > > No input file specified. > <br> > <b>Warning</b>: Unable to call ÿ&#9786;x() - function does not exist in <b>Unknown</b > > on line <b>0</b><br> > <br> > <b>Warning</b>: Unable to call ¿&#9787;x() - function does not exist in <b>Unknown</b > > on line <b>0</b><br> > <br> > <b>Warning</b>: Unable to call ©&#9787;x() - function does not exist in <b>Unknown</b > > on line <b>0</b><br> > <br> > <b>Warning</b>: Unable to call &#9562;&#9787;x() - function does not exist in <b>Unknown</b > > on line <b>0</b><br> > <br> > <b>Warning</b>: Unable to call Ï&#9787;x() - function does not exist in <b>Unknown</b > > on line <b>0</b><br> > > and so on until a general protection fault commes up. > > What is wrong ??????? > > Mfg. Thomas, Germany > > > -------------------------------------------------------------------------- - > > > Full Bug description available at: http://bugs.php.net/?id=7096

« previous php.dev (#36630) next »