Bug #5065 [Opn->Asn]: return type is not integer
| From: | Unknown Sender | Date: | Fri, 09 Sep 2005 19:49:53 +0000 |
| Subject: | Bug #5065 [Opn->Asn]: return type is not integer | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-6778@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=5065&edit=1
ID: 5065
Updated by: @php.net
Reported By: senna at mugeso dot com
-Status: Open
+Status: Assigned
Id: 5065
Type: Bug
Package: Documentation
PHP Version: 5.0.5
-Assigned To:
+Assigned To: mj
New Comment:
To which page are you referring to, please?
Previous Comments:
------------------------------------------------------------------------
[2005-08-11 07:38:22] 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"
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=5065&edit=1