Bug #3437 [NEW]: Wrong method name in example
| From: | twinther at chello dot no | Date: | Fri, 11 Feb 2005 17:51:03 +0000 |
| Subject: | Bug #3437 [NEW]: Wrong method name in example | ||
| Groups: | php.pear.doc | ||
| Request: | Send a blank email to pear-doc+get-5523@lists.php.net to get a copy of this message | ||
From: twinther at chello dot no
Operating system: irrelevant
PHP version: Irrelevant
Package: Documentation
Bug Type: Bug
Bug description: Wrong method name in example
Description:
------------
Hi, this is what I assume is an error in the code listing for 'Example
21-1, Typical usage example for PEAR::Auth', PEAR::Auth, on the page
called 'Introduction'.
A method that doesn't exist in the class is called on line 22.
Reproduce code:
---------------
if ($a->checkAuth()) {
/**
* The output of your site goes here.
*/
}
Expected result:
----------------
An error reporting that checkAuth() is a non-existing method.
The code, I guess, should be:
if ($a->getAuth()) {
/**
* The output of your site goes here.
*/
}
--
Edit bug report at http://pear.php.net/bugs/bug.php?id=3437&edit=1
--