|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #9068 Bugs in OO which are leaking memory...
Submitted: 2001-02-02 04:13 UTC Modified: 2001-12-13 06:23 UTC
From: Jason at hspace dot net Assigned: andre (profile)
Status: Closed Package: Class/Object related
PHP Version: 4.0 Latest CVS (02/02/2001) OS: Windows 2000
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.
Block user comment
Status: Assign to:
Bug Type:
From: Jason at hspace dot net
New email:
PHP Version: OS:


 [2001-02-02 04:13 UTC] Jason at hspace dot net
Note: I've posted some bugs earlier, but they seem to have been fixed with the latest build of PHP 4.0.5-dev. (I don't remember their bug numbers.)

Outstanding two bugs in PHP 4.0.5, which are leaking memory:

(1) OOP Bug eg...
	$num_columns = $rs->Fields->Count();

Leaks memory when two -> -> are used.
Does not leak when this line is written in two lines:

$fields = $rs->Fields;
$num_columns = $fields->Count();

(2) passing recordset to a variable in the object ...
	$this->rs_obj = $rs;

leaks memory when passing ADO recordset to an object modular variable. (variable defined in the module scope of the class.)

Solution is not to pass recordsets.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-11-17 12:14 UTC]
Does this still happen with latest CVS?
 [2001-12-13 06:23 UTC]
No feedback. Closing.
PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Sat Dec 02 08:01:29 2023 UTC