php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2357 Apache 1.3.[69] fails with URL http://localhost/php/test.php: "No input file"
Submitted: 1999-09-22 13:34 UTC Modified: 1999-10-07 14:00 UTC
From: KeijserJJ at logica dot com Assigned:
Status: Closed Package: Installation problem
PHP Version: 3.0.12 OS: Win32 & RedHat 6.0
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: KeijserJJ at logica dot com
New email:
PHP Version: OS:

 

 [1999-09-22 13:34 UTC] KeijserJJ at logica dot com
This is similar to bug reports #1555 and #1919:

When trying something like
  http://localhost/php/test.php
on either Apache 1.3.9 + Windows 95 or Apache 1.3.6 + RedHet 6.0 + STANDALONE php I receive only the message:
  No input file specified

However, when I try
  http://localhost/php/php.exe/php/test.php
it works fine.

On RedHat 6.0, I've compiled php 3.0.12 straight out of the box using
  ./configure
  ./make
  ./make install
(this gives me the non-redirect version) 
Again, I am not using mod_php in this case (since I don't have it on Win32 either), but I am using the *STANDALONE* version of 'php'.

I've looked in the code, and the same thing is happening on both platforms. This is the cuplprit:

/* If for some reason the CGI interface is not setting the
    PATH_TRANSLATED correctly, request_info.filename is NULL.
   We still call php3_fopen_for_parser, because if you set doc_root
   or user_dir configuration directives, PATH_INFO is used to construct
   the filename as a side effect of php3_fopen_for_parser.
*/
  if (cgi || GLOBAL(request_info).filename)
    in = php3_fopen_for_parser();

    if (cgi && !in) {
       if (php3_header()) {
           PUTS("No input file specified.\n");


BUT...

PATH_TRANSLATED nor PATH_INFO is set in this case, because the syntax is ".../php/test.php". However, PHP seems to want these variables when run in "CGI mode" and therefore spits out the erorr message
  "No input file specified."

Should this be considered a bug?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-10-07 14:00 UTC] andrei at cvs dot php dot net
Closed by user's request.
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Sun Dec 04 15:05:54 2022 UTC