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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: MajorTom at web dot de
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Thu Jul 17 01:01:33 2025 UTC