Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.11.5

Bug #5065 return type is not integer
Submitted: 2005-08-11 11:38 UTC
From: senna at mugeso dot com Assigned: mj
Status: Closed Package: DB_DataObject
PHP Version: 5.0.5 OS:
Roadmaps: (Not assigned)    
Subscription  
Comments Add Comment Add patch


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 25 + 43 = ?

 
 [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"

Comments

 [2005-09-09 19:49 UTC] at php dot net
To which page are you referring to, please?
 [2005-09-30 16:53 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [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
 [2005-10-21 20:47 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!
 [2005-10-25 03:12 UTC] User who submitted this comment has not confirmed identity
If you submitted this note, check your email.If you do not have a message, click here to re-send
MANUAL CONFIRMATION IS NOT POSSIBLE.  Write a message to pear-dev@lists.php.net
to request the confirmation link.  All bugs/comments/patches associated with this

email address will be deleted within 48 hours if the account request is not confirmed!