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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 25 21:01:36 2024 UTC