ID: 9068
Updated by: mfischer
Reported By: [EMAIL PROTECTED]
Old Status: Assigned
Status: Feedback
Bug Type: Class/Object related
Operating System: Windows 2000
PHP Version: 4.0 Latest CVS (02/02/2001)
Assigned To: andre
New Comment:

Does this still happen with latest CVS?

Previous Comments:
------------------------------------------------------------------------

[2001-02-02 04:13:19] [EMAIL PROTECTED]

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.


------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=9068&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to