ID:          26135
 Updated by:  [EMAIL PROTECTED]
 Reported By: benoit dot sibaud at rd dot francetelecom dot com
-Status:      Open
+Status:      Closed
 Bug Type:    Documentation problem
 PHP Version: Irrelevant
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2003-11-05 05:28:14] benoit dot sibaud at rd dot francetelecom dot com

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 this bug report at http://bugs.php.net/?id=26135&edit=1

Reply via email to