Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.5

Bug #172 Problem with overload()
Submitted: 2003-10-31 04:47 UTC
From: viking at dslnorthwest dot net Assigned: alan_k
Status: Closed Package: DB_DataObject
PHP Version: 4.3.3 OS: Mac OS X 10.2.8
Roadmaps: (Not assigned)    

 [2003-10-31 04:47 UTC] viking at dslnorthwest dot net
Description: ------------ Please see bug #25831 in the PHP bug tracking system: There is a verified problem in the scripting engine which causes pass-by-reference to fail when a class is overloaded. This problem will not be fixed in PHP 4 (see the bug for details). The conditional overloading at the bottom of DB_DataObject.php should be fixed to cover all versions that demonstrate this problem, since it breaks basic functionality. To my knowledge this applies to versions 4.3.2 and higher.


 [2003-10-31 13:44 UTC] alan_k
looks like the only way to fix this is define('DB_DATAOBJECT_NO_OVERLOAD'); require_once 'DB/DataObject.php'; .. and inside dataobjects.. if (..phpversioncheck... && !defined('DB_DATAOBJECT_NO_OVERLOAD') { overload(...) }
 [2003-11-09 03:19 UTC] alan_k
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on In case this was a website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.