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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
39 + 33 = ?
Subscribe to this entry?

 
 [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 27 17:01:34 2024 UTC