#24321 [NEW]: Documentation mistake for yp_err_string()

From: Date: Tue, 24 Jun 2003 19:16:17 +0000
Subject: #24321 [NEW]: Documentation mistake for yp_err_string()
Groups: php.doc 
Request: Send a blank email to phpdoc+get-969354837@lists.php.net to get a copy of this message
From: niklas at zim dot goe dot net Operating system: SuSE 8.2 (Linux 2.4.20, gcc 3.3) PHP version: 4.3.1 PHP Bug Type: Documentation problem Bug description: Documentation mistake for yp_err_string() Description: ------------ The doc for yp_err_string() says: yp_err_string -- Returns the error string associated with the previous operation Description string yp_err_string ( void) which is obviously wrong, as the code below shows. I think it is meant to be something like yp_err_string -- Returns the error string associated with the given error code Description string yp_err_string (int errorCode) because yp_err_string(yp_errno()) just works fine. Best regards Niklas Reproduce code: --------------- $yp = @yp_match("nomap", "norDomain"); if (!$yp) { echo "Error: " . yp_err_string(); } Expected result: ---------------- printout: Error: Can't bind to server which serves this domain Actual result: -------------- printout: Warning: Wrong parameter count for yp_err_string() -- Edit bug report at http://bugs.php.net/?id=24321&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=24321&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=24321&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=24321&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=24321&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=24321&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=24321&r=support Expected behavior: http://bugs.php.net/fix.php?id=24321&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=24321&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=24321&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=24321&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=24321&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=24321&r=dst IIS Stability: http://bugs.php.net/fix.php?id=24321&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=24321&r=gnused

« previous php.doc (#969354837) next »