|  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
 [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-2024 The PHP Group
All rights reserved.
Last updated: Thu Feb 22 05:01:28 2024 UTC