Bug #4648 [Opn->Csd]: DB_DataObject docs: bug in one of the examples
| From: | alexander dot merz at gmail dot com | Date: | Tue, 21 Jun 2005 14:16:17 +0000 |
| Subject: | Bug #4648 [Opn->Csd]: DB_DataObject docs: bug in one of the examples | ||
| References: | 1 | Groups: | php.pear.doc |
| Request: | Send a blank email to pear-doc+get-6381@lists.php.net to get a copy of this message | ||
Edit report at http://pear.php.net/bugs/bug.php?id=4648&edit=1
ID: 4648
Updated by: alexander.merz@gmail.com
Reported By: lists at norbert dot mocsnik dot hu
-Status: Open
+Status: Closed
Type: Bug
Package: Documentation
Operating System: irrelevant
PHP Version: Irrelevant
New Comment:
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.
Previous Comments:
------------------------------------------------------------------------
[2005-06-21 10:12:46] lists at norbert dot mocsnik dot hu
Description:
------------
db-dataobject/intro-purpose.xml
line 112:
function getAge() {
$age = date('Y') - date('Y',$this->birthDate);
}
The evaluated expression should be returned instead of putting it into
a local variable.
here is the corrected version:
function getAge() {
return date('Y') - date('Y',$this->birthDate);
}
------------------------------------------------------------------------
--
Edit this bug report at http://pear.php.net/bugs/bug.php?id=4648&edit=1