PEAR is archived and read-only

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

Home » Bug #3437

Wrong method name in example

Details

Submitted2005-02-11 17:51 UTC
Fromtwinther at chello dot no
Assignedmj
StatusBogus
PackageDocumentation
PHP VersionIrrelevant
OSirrelevant
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.
*/
}