PEAR is discontinued

This is a static archive preserving historical releases and metadata. No new packages or updates will be published. For updates to existing packages, or to publish new packages, please use Composer and Packagist.

Home » Database » DB_DataObject » Bug #1347

__clone does not work in DataObject - use clone $obj instead

Details

Submitted2004-05-05 13:32 UTC
Fromthomas dot haas at fht-esslingen dot de
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version5.0.0RC2 (Release Candidate 2)
OSwin 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