bugphpGroupWare - Bugs: bug #2879, mysql_free_result() raises...

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #2879: mysql_free_result() raises warnings in class.db_mysql.inc.php, in db->free()

Submitted by:  Invalid User ID <Invalid User ID>
Submitted on:  Thu 20 Mar 2003 07:27:45 AM UTC  
 
Item Group: 0.9.14.001 releaseCategory: API - phpGroupware API
Severity: 3 - NormalPriority: 5 - Normal
Status: InvalidPrivacy: Public
Assigned to: Dave Hall <skwashd>Open/Closed: Closed
Component Version: NoneOperating System: GNU/Linux - RedHat/Fedora
Reproducibility: Every TimePlanned Release: None
Fixed Release: 

Fri 21 Mar 2003 10:20:35 PM UTC, comment #1:

I looked into this one a bit. It turns out that it is not a bug. I have confirmed this with other devs too. Geek speak follows ...

Sometimes apps clone the global db object to make it easier to work with, like so:
$this->db = $GLOBALS['phpgw']->db;

If there is a 'unfreed' query result in memory when the object is cloned that handle is also cloned. The next time a query is called it is automatically freed by a call to db->free().

Due to the db object being cloned, the db class may attempt to free the same handle twice. The @ supresses any error when freeing the handle, partially for this reason.

I hope this makes sesnse.

Dave Hall <skwashd>
Project AdministratorIn charge of this item.

 

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

Do you think this task is very important?
If so, you can click here to add your encouragement to it.
This task has 0 encouragements so far.

Only logged-in users can vote.

 

Please enter the title of George Orwell's famous dystopian book (it's a date):

 

 

Follow 7 latest changes.

Date Changed By Updated Field Previous Value => Replaced By
Fri 21 Mar 2003 10:20:35 PM UTCskwashdItem GroupNone=>(Error - Not Found)
  Priority100(Error - Not Found)=>(Error - Not Found)
  StatusNone=>(Error - Not Found)
  Assigned toNone=>NA
  Open/ClosedOpen=>(Error - Not Found)
  ReproducibilityNone=>(Error - Not Found)
  Summarymysql_free_result() raises warnings in class.db_mysql.inc.php, in db::free()=>

Back to the top


Powered by Savane 3.1-cleanup1