PEAR is archived and read-only

This mirror preserves historical PEAR package releases and metadata so existing references remain available.

Home » Bug #3184

Typo in sample code in PEAR::DB_DataObject

Details

Submitted2005-01-13 07:24 UTC
Fromlarry at garfieldtech dot com
Assignedalan_k
StatusClosed
PackageDocumentation
PHP VersionIrrelevant
OSLinux
Roadmaps(Not assigned)

Comments

[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).