From: benoit dot sibaud at rd dot francetelecom dot com Operating system: PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: yp_first() example uses deprecated feature
Description: ------------ Example from http://www.php.net/manual/en/function.yp-first.php 8<---------------------- <?php $entry = yp_first($domain, "passwd.byname"); $key = $entry ["key"]; $value = $entry ["value"]; echo "First entry in this map has key " . $key . " and value " . $value; ?> 8<---------------------- "key" and "value" entries are deprecated. (cf bug #8041 and ext/yp/yp.c 8<---------------------- /* Deprecated */ add_assoc_stringl(return_value,"key",outkey,outkeylen,1); add_assoc_stringl(return_value,"value",outval,outvallen,1); 8<----------------------). An example with $key = key($entry); would be better (like for yp_next). -- Edit bug report at http://bugs.php.net/?id=26135&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26135&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26135&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26135&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26135&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26135&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=26135&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26135&r=support Expected behavior: http://bugs.php.net/fix.php?id=26135&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26135&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26135&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26135&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26135&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26135&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26135&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26135&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26135&r=float
