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 #1462

Using __clone in function count leads to an error

Details

Submitted2004-05-21 09:12 UTC
Fromhschaefer at elipson dot de
Assignedalan_k
StatusClosed
PackageDB_DataObject
PHP Version4.3.6
OSWinXP SP1
Roadmaps(Not assigned)

Comments

[2004-05-21 09:12 UTC] hschaefer at elipson dot de

Description:
------------
Using function count under 4.3.6 with DB_DataObject 1.5.3 throws error. I found another topic belonging to this problem with hints for php5. Do you still support php4?

Reproduce code:
---------------
I was trying to use something like
$pageResults = $instance->count();
and got the error
"Fatal error: Call to undefined function: __clone() in C:\WebSuite\php4\pear\DB\DataObject.php on line 1235".

Expected result:
----------------
Number of results.

Actual result:
--------------
Fatal error: Call to undefined function: __clone() in C:\WebSuite\php4\pear\DB\DataObject.php on line 1235