Bug #5065 [NEW]: return type is not integer
| From: | senna at mugeso dot com | Date: | Thu, 11 Aug 2005 11:38:23 +0000 |
| Subject: | Bug #5065 [NEW]: return type is not integer | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-6640@lists.php.net to get a copy of this message | ||
From: senna at mugeso dot com
Operating system:
PHP version: 5.0.5
Package: Documentation
Bug Type: Bug
Bug description: return type is not integer
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"
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=5065&edit=1
--