php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7096 CGI-Error
Submitted: 2000-10-09 05:08 UTC Modified: 2000-11-01 05:15 UTC
From: MajorTom at web dot de Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.0.2 OS: Windows NT 4.0 / Win 2000
Private report: No CVE-ID: None
 [2000-10-09 05:08 UTC] MajorTom at web dot 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 php\php.exe test.php

this will work , you see the output!

now type:
SET REQUEST_METHOD=GET
c:\path to php\php.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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-01 05:15 UTC] dbeu@php.net
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
>>>
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Jun 14 05:01:34 2024 UTC