Home » Bug #3437
Wrong method name in example
Details
| Submitted | 2005-02-11 17:51 UTC |
|---|---|
| From | twinther at chello dot no |
| Assigned | mj |
| Status | Bogus |
| Package | Documentation |
| PHP Version | Irrelevant |
| OS | irrelevant |
| Roadmaps | (Not assigned) |
Comments
[2005-02-11 17:51 UTC] twinther at chello dot no
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.
*/
}