Report new bug | New search | Development Roadmap Status: Open | Feedback | All

Bug #3184 Typo in sample code in PEAR::DB_DataObject
Submitted: 2005-01-13 07:24 UTC
From: larry at garfieldtech dot com Assigned: alan_k
Status: Closed Package: Documentation
PHP Version: Irrelevant OS: Linux
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 : 44 + 26 = ?

 
 [2005-01-13 07:24 UTC] larry at garfieldtech dot com
Description: ------------ On page: http://pear.php.net/manual/en/package.database.db-dataobject.db-dataobject.limit.php the sample code at the bottom of the page includes this block: while ($person->fetch()) { echo "$person->id} {$person->name}<BR>"; } That is a typo. The line should read: echo "{$person->id} {$person->name}<BR>"; (Note the extra { before $person).

Comments

 [2005-01-14 07:55 UTC] alan_k
This bug has been fixed in CVS. In case this was a documentation problem, the fix will show up at the end of next Sunday (CET) on pear.php.net. In case this was a pear.php.net website problem, the change will show up on the website in short time. Thank you for the report, and for helping us make PEAR better.