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


-- 
PHP Documentation Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to