|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11875 bad retiurn in yp_first
Submitted: 2001-07-04 07:55 UTC Modified: 2007-04-04 19:05 UTC
From: Bernard dot Prevosto at ifremer dot fr Assigned:
Status: Closed Package: Unknown/Other Function
PHP Version: 4.0.6 OS: Solaris 5.5.1
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: Bernard dot Prevosto at ifremer dot fr
New email:
PHP Version: OS:


 [2001-07-04 07:55 UTC] Bernard dot Prevosto at ifremer dot fr

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

  $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]


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.


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2001-12-17 10:53 UTC]
Does this work under PHP 4.1.0?

 [2002-01-07 02:21 UTC]
No feedback. Closed.
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Jul 04 03:03:50 2022 UTC