|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-06-25 06:27 UTC] didou@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 23:00:01 2025 UTC |
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()