PHP 4.0 Bug #7096 Updated: CGI-Error

From: Date: Wed, 01 Nov 2000 10:15:00 +0000
Subject: PHP 4.0 Bug #7096 Updated: CGI-Error
Groups: php.dev 
Request: Send a blank email to php-dev+get-36605@lists.php.net to get a copy of this message
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 (#36605) next »