php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #4079 Logic error in mod_php4.c
Submitted: 2000-04-08 06:52 UTC Modified: 2000-04-08 07:18 UTC
From: pgregg at niweb dot com Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Beta 4 Patch Level 1 OS: FreeBSD 3.4
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: pgregg at niweb dot com
New email:
PHP Version: OS:

 

 [2000-04-08 06:52 UTC] pgregg at niweb dot com
In sapi/apache/mod_php4.c the following code has a silly error:
                if (elts[i].val) {
                        val = elts[i].val;
                        if (!strcmp(val, "SCRIPT_FILENAME")) {
                                script_filename = val;
                        }


This is comparing the env value instead of the key, thus
$PATH_TRANSLATED won't work; it
should be
if (!strcmp(elts[i].key, "SCRIPT_FILENAME")) {


Paul Gregg.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-04-08 07:18 UTC] zeev at cvs dot php dot net
Fixed, thanks
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Mon Jun 02 13:01:26 2025 UTC