php.net |  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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
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.

Patches

Pull Requests

History

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