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
 [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

Add a Patch

Pull Requests

Add a Pull Request

History

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