Bug #11875 Updated: bad retiurn in yp_first
| From: | lobbin@php.net | Date: | Mon, 17 Dec 2001 15:53:29 +0000 |
| Subject: | Bug #11875 Updated: bad retiurn in yp_first | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-74149@lists.php.net to get a copy of this message | ||
ID: 11875
Updated by: lobbin
Reported By: Bernard.Prevosto@ifremer.fr
Old Status: Open
Status: Feedback
Bug Type: YP/NIS related
Operating System: Solaris 5.5.1
PHP Version: 4.0.6
New Comment:
Does this work under PHP 4.1.0?
R.
Previous Comments:
------------------------------------------------------------------------
[2001-07-04 07:55:35] Bernard.Prevosto@ifremer.fr
Hello,
After upgrading PHP server version 4.0.6
, we have notice a problem in the yp_first function
(it was working fine with PHP Version 4.0.5
<?php
$entry = yp_first($domain, "hosts.byname");
$key = key($entry);
echo "First entry is " . $key . " and the value is " . $entry[$key];
?>
it returns a value in $key but nothing in $entry[$key]
Ex:
First entry is hedic and the value is (empty string)
With the ypmatch command in unix shell, it works:
# ypmatch hedic hosts.byname
x.y.z.w hedic
Thanks in advance for your help.
------------------------------------------------------------------------
Edit this bug report at http://bugs.php.net/?id=11875&edit=1