Home » Database » DB_DataObject » Bug #1347
__clone does not work in DataObject - use clone $obj instead
Details
| Submitted | 2004-05-05 13:32 UTC |
|---|---|
| From | thomas dot haas at fht-esslingen dot de |
| Assigned | alan_k |
| Status | Closed |
| Package | DB_DataObject |
| PHP Version | 5.0.0RC2 (Release Candidate 2) |
| OS | win xp |
| Roadmaps | (Not assigned) |
Comments
[2004-05-05 13:32 UTC] thomas dot haas at fht-esslingen dot de
Description:
------------
Fatal error: Cannot call __clone() method on objects - use 'clone $obj' instead in C:\php\PEAR\DB\DataObject.php on line 1235
I use: DataObject 1.5.3
Reproduce code:
---------------
It does work with
$t = clone $this;
instead of
$t = $this->__clone();
Expected result:
----------------
Package should work with
$t = clone $this;
instead of
$t = $this->__clone();
in function count($whereAddOnly = false) of DataObject.php.
New Version?
Actual result:
--------------
Fatal error: Cannot call __clone() method on objects - use 'clone $obj' instead in C:\php\PEAR\DB\DataObject.php on line 1235