php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #5281 Memleak when referencing '$this'
Submitted: 2000-06-30 05:27 UTC Modified: 2000-06-30 06:04 UTC
From: caps at gge dot nl Assigned:
Status: Closed Package: Other
PHP Version: 4.0 Beta 4 Patch Level 1 OS: Linux
Private report: No CVE-ID: None
 [2000-06-30 05:27 UTC] caps at gge dot nl
<?
        class muhtest {
                var $blaa;
                function test($test) {
                        $this->blaa = &$this;

                }
        }

        $blah = new muhtest;
        $blah->test("test2");
?>



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-06-30 06:04 UTC] stas at cvs dot php dot net
PHP does not support circular references. 
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri May 10 01:01:30 2024 UTC