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

return type is not integer

Details

Submitted2005-08-11 11:38 UTC
Fromsenna at mugeso dot com
Assignedmj
StatusClosed
PackageDB_DataObject
PHP Version5.0.5
Roadmaps(Not assigned)

Comments

[2005-08-11 11:38 UTC] senna at mugeso dot com

Description:
------------
According to the manual,
return type of count() method is int but actualy is string.

Test script:
---------------
age table
==============
name | age
--------------
Tom | 24
Bob | 23
Jhon | 24
==============

Code:

$table = DB_DataObject::factory('age');
$table->age = 24;
var_dump($table->count());

Expected result:
----------------
integer(2)

Actual result:
--------------
string(1) "2"

[2005-09-09 19:49 UTC] at php dot net

To which page are you referring to, please?

[2005-10-10 05:33 UTC] senna at mugeso dot com

I was so bussy that late for replay, sorry.

i reffer to
http://pear.php.net/manual/en/package.database.db-dataobject.db-dataobject.count.php