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
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: 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 Dec 26 13:01:30 2024 UTC