php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27539 PHP output: No input file specified
Submitted: 2004-03-09 12:10 UTC Modified: 2004-04-13 12:34 UTC
From: barry at teleserver dot es Assigned:
Status: Not a bug Package: CGI/CLI related
PHP Version: 4.3.4 OS: Sun Solaris 2.6
Private report: No CVE-ID: None
 [2004-03-09 12:10 UTC] barry at teleserver dot es
Description:
------------
After instalation and configurati?n I try to start up a PHP script from a C coded binary CGY by the C system() functi?n. The text "No input file specified" appears in the navigator. 

Configure line:./configure --prefix=/disco1/aplicaciones/QuorumEnterpriseCenter/apache/php_4.3.4 --with-oracle=/disco1/oracle/8.0.4 --with-oci8=/disco1/oracle/8.0.4 --enable-discard-path  --enable-sockets --enable-force-cgi-redirect --with-config-file-path=/disco1/aplicaciones/QuorumEnterpriseCenter/apache/php_4.3.4

Changes to php.ini: cgi.force_redirect = 0

Observations: This same configuration with earlier version of PHP works fine.



Reproduce code:
---------------
PHP script:

#!/disco1/aplicaciones/QuorumEnterpriseCenter/apache/php_4.3.4/bin/php
<?
?>  

Expected result:
----------------
Yust nothing, an empty page

Actual result:
--------------
"No input file specified"

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-09 19:10 UTC] sniper@php.net
Does it work if you run the script on command line?
What do you mean with "I try to start up a PHP script from
a C coded binary CGY by the C system() functi?n" ???

How did you configure PHP for Apache in httpd.conf ??

 [2004-03-10 03:56 UTC] barry at teleserver dot es
First of all thanks for your request.

The PHP script seems to work fine from de unix command line:

About the C coded CGI: The webserver starts up a normal CGI programmed in C. This CGY starts up the PHP script as it was from the command line, by using the C system() function as followed:
system("/disco1/php/test.php");

About apache: For this tests I used the netscape webserver because of some other problems I have using apache with this same configuration and reported as bug: 27540
 [2004-03-10 13:27 UTC] sniper@php.net
Please close the other report, the issue is same.
And provide the backtrace of the crash here.

 [2004-03-15 06:22 UTC] barry at teleserver dot es
The problem I have with bug: 27540 is PHP versi?n independend and only with apache. If you prefer hendling thes both bugs under this reference, I will close the other one. 

Refering your request, please tell me exaclty with backtrace you mean, I don?t know PHP to much and need some help. If you refer to the coredump I see on the browser, its a lot of informati?n and seems to refer to a lot of memory data not only PHP.
 [2004-03-15 07:32 UTC] sniper@php.net
Thank you for this bug report. To properly diagnose the problem, we
need a backtrace to see what is happening behind the scenes. To
find out how to generate a backtrace, please read
http://bugs.php.net/bugs-generating-backtrace.php

Once you have generated a backtrace, please submit it to this bug
report and change the status back to "Open". Thank you for helping
us make PHP better.


 [2004-03-24 04:08 UTC] barry at teleserver dot es
I made the changes in php.ini for the backtrace generation as commented in "bugs-generating-backtrace.php", however there is nothing changed refering the behaviour of the apache/php execution as commented initially in bug: 27540.
This erroneous result doesn't create a core on my solaris file system so it is impossible for me to generate the backtrace file you asked for. In sted of generating the core file on the file system, the PHP shell execution from the CGI, sends the coredump information directly to the browser. Is there someting else I can do in order to give you the necesary information?
 [2004-03-30 05:48 UTC] barry at teleserver dot es
After looking for posible solutions in internet I tried some posible solutions for example compiling de PHP software without the options --enable-discard-path and --enable-force-cgi-redirect. The new situation seems to be more suitable, I can?t reproduce de coredump on the browser and the behavier seems to be the same executing the PHP script through IPlanet and Apache, in both cases with the same result on the browser "No input file specified.".
 [2004-04-06 12:54 UTC] sniper@php.net
This is some misconfiguration of your webserver / php. Using latest PHP release on a properly configured server I can not reproduce this.

 [2004-04-13 06:47 UTC] barry at teleserver dot es
Normally we compile PHP with: configure --prefix=/usr/local/php4.3.4 --with-oracle=/disco1/oracle/8.0.4 --with-oci8=/disco1/oracle/8.0.4 --enable-discard-path  --enable-sockets but compiling version 4.3.4 with the same options it doesn?t works, always returning ?No input file specified? in the web browser. The ?--enable-discard-path? option, generates a core output using apache, without this option the result (?No input file specified?) is the same for apache and IPlanet.

Ok, it?s through, there can be a wrong configuration between the web server and my PHP version 4.3.4 (the latest version as I know), but the strange thing about this is that it happens with both web servers (apache and IPlanet). With previous version of PHP (4.0.4 and before) it works fine with the same web server configuration of IPlanet. All of these previous versions with the same configuration give core output problems with apache.

Comparing the configuration options the version 4.3.4 has more options than the 4.0.4 version, and it is almost impossible to understand and try them all in order to get the same functionality of the 4.0.4 for IPlanet and apache, perhaps some configuration tips form your site can help us to resolve this problem, or even if you tell me witch kind of input file the PHP shell is expecting in order to understand better the behavior of PHP 4.3.4.
 [2004-04-13 12:34 UTC] sniper@php.net
Latest release is 4.3.5 (but wait for 4.3.6 before updating!).
Please ask further support questions on the mailing lists.

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 18 14:01:31 2024 UTC