Doc #9786 [Opn->Csd]: Missing a {
| From: | moosh@php.net | Date: | Tue, 09 Jan 2007 19:57:41 +0000 |
| Subject: | Doc #9786 [Opn->Csd]: Missing a { | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-9266@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=9786&edit=1
ID: 9786
Updated by: moosh@php.net
Reported By: o at homedev dot org
-Status: Open
+Status: Closed
Type: Documentation Problem
Package: Documentation
Operating System: Linux
PHP Version: 5.1.0
-Assigned To:
+Assigned To: moosh
New Comment:
This bug has been fixed in CVS.
If this was a documentation problem, the fix will appear on
pear.php.net by the end of next Sunday (CET).
If this was a problem with the pear.php.net website, the change should
be live shortly.
Otherwise, the fix will appear in the package's next release.
Thank you for the report and for helping us make PEAR better.
Previous Comments:
------------------------------------------------------------------------
[2007-01-09 11:29:14] o at homedev dot org
http://pear.php.net/manual/en/package.database.db-dataobject.db-dataobject.find.php
------------------------------------------------------------------------
[2007-01-09 11:27:41] o at homedev dot org
Description:
------------
there is an error in the doc at the bottom.
<?php
$person = new DataObjects_Person;
$person->whereAdd('age > 12');
$person->whereAdd('age < 30');
$person->find();
while ($person->fetch()) {
echo "$person->id} {$person->name}<BR>";
}
$person = new DataObjects_Person;
$person->whereAdd('age < 12');
$person->whereAdd('age > 30', 'OR');
$person->find();
while ($person->fetch()) {
echo "$person->id} {$person->name}<BR>";
}
Test script:
---------------
If should be
while ($person->fetch()) {
echo "{$person->id} {$person->name}<BR>";
}
NOTE the Extra { before {$person
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=9786&edit=1