Received: (qmail 57115 invoked by uid 501); 30 Oct 2000 15:39:57 -0000 Message-Id: <20001030153957.57114.qmail@locus.apache.org> Date: 30 Oct 2000 15:39:57 -0000 From: Martin Brennfleck Reply-To: martin@schlund.de To: submit@bugz.apache.org Subject: If using php3 as external cgi, Error 404 will not be detected. X-Send-Pr-Version: 3.110 >Number: 6763 >Category: mod_actions >Synopsis: If using php3 as external cgi, Error 404 will not be detected. >Confidential: no >Severity: serious >Priority: medium >Responsible: apache >State: closed >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: apache >Arrival-Date: Mon Oct 30 07:40:02 PST 2000 >Closed-Date: Mon Oct 30 22:17:53 PST 2000 >Last-Modified: Mon Oct 30 22:17:53 PST 2000 >Originator: martin@schlund.de >Release: 1.3.14 >Organization: >Environment: Linux sp-win045.schlund.de 2.2.13-7mdk #1 Wed Sep 15 18:02:18 CEST 1999 i586 unknown >Description: Configuration for php3: --------------------------------------------------- ScriptAlias /cgi-bin/ /home/httpd/cgi-bin/ AddType application/x-httpd-php3 .php3 .php3~ .php Action application/x-httpd-php3 /cgi-bin/php3 ----------------------------------------------------- We are shure that /home/httpd/cgi-bin/ exists and /cgi-bin/php3 is working well with existing URL's. If the .php3 - script doesn't exists, no Error 404 will be generated, but /cgi-bin/php3 will be called with a nonexitent PATH_TRANSLATED. Result is, that no Error-Handler will be executed. Output from /cgi-bin/php3: Fatal error: Unable to open /usr/local/apache/htdocs/lall.php3 in - on line 0 No input file specified. I think, that this Problem is not only affecting php3-scripts only, but all cgi's wich are called with an action-Handler. >How-To-Repeat: Call a nonexitent .php3 File with php3-Configuration like above. >Fix: Detect missing .php3 script. >Release-Note: >Audit-Trail: State-Changed-From-To: open-closed State-Changed-By: fanf State-Changed-When: Mon Oct 30 22:17:52 PST 2000 State-Changed-Why: Apache is behaving correctly; it is up to the CGI (in your case PHP) to do the right thing if it doesn't find a file it is expecting. Perhaps you have configured PHP wrongly? >Unformatted: [In order for any reply to be added to the PR database, you need] [to include in the Cc line and make sure the] [subject line starts with the report component and number, with ] [or without any 'Re:' prefixes (such as "general/1098:" or ] ["Re: general/1098:"). If the subject doesn't match this ] [pattern, your message will be misfiled and ignored. The ] ["apbugs" address is not added to the Cc line of messages from ] [the database automatically because of the potential for mail ] [loops. If you do not include this Cc, your reply may be ig- ] [nored unless you are responding to an explicit request from a ] [developer. Reply only with text; DO NOT SEND ATTACHMENTS! ]