php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #467 memory leak
Submitted: 1998-06-18 06:25 UTC Modified: 1998-09-02 16:45 UTC
From: john at scl dot co dot uk Assigned:
Status: Closed Package: Parser error
PHP Version: 3.0 Release Candidate 5 OS: linux 2.0.33
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: john at scl dot co dot uk
New email:
PHP Version: OS:

 

 [1998-06-18 06:25 UTC] john at scl dot co dot uk
Apache error log:

[Thu Jun 18 11:11:47 1998] Possible PHP3 memory leak detected
 (harmless):  12 bytes from language-parser.y:637

This may be related to spurious and intermittent parse errors with:

function lookup($domain, $root) {
        exec("../../../cgi-bin/ns.cgi \"$domain\" \"$root\"", $result, $ret);
        //$strresult = $result[0]."\n".$result[1];
        //for($i=0;$i<count($result);$i++) strresult .= $result[$i];
        $strresult = "";
        //for($i=0;$i<2;$i++) strresult .= $result[$i];

        switch ($ret) {
        case 0:
                display($domain, $root, "A");
                break;
        case 1:
                display($domain, $root, "U", $strresult);
                break;
        case 2:
                display($domain, $root, "E", $strresult);
                break;
        default:
                errorpage("Uncased return \"$ret\" in lookup()");
        }
}

The parse errors are on the line:
       $strresult = "";

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-09-02 16:45 UTC] zeev
Does this still happen with the current release?  Please let us know so we can close this bug report.

No response from the user.  It *should* be fixed in the
current release;  If it isn't, please let us know.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC