Bug #3437 [Fbk->Bgs]: Wrong method name in example

From: Date: Sun, 23 Oct 2005 17:37:50 +0000
Subject: Bug #3437 [Fbk->Bgs]: Wrong method name in example
References: 1  Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-7070@lists.php.net to get a copy of this message
Edit report at http://pear.php.net/bugs/bug.php?id=3437&edit=1 ID: 3437 Updated by: danielc@php.net Reported By: twinther at chello dot no -Status: Feedback +Status: Bogus Id: 3437 Type: Bug Package: Documentation Operating System: irrelevant PHP Version: Irrelevant Assigned To: mj New Comment: Reporter seems to be mistaken or using an outdated version. Previous Comments: ------------------------------------------------------------------------ [2005-02-24 11:31:48] mj at php dot net The checkAuth() method exists. Can you please post the code with which you can reproduce this problem? ------------------------------------------------------------------------ [2005-02-11 14:18:26] danielc at analysisandsolutions dot com In addition, "/**" indicates the start of a docblock. "/*" should be used throughout the examples unless the comment really is a docblock. ------------------------------------------------------------------------ [2005-02-11 12:51:03] 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. */ } ------------------------------------------------------------------------ -- Edit this bug report at http://pear.php.net/bugs/bug.php?id=3437&edit=1

« previous php.pear.doc (#7070) next »