php.net |  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
 [2001-07-04 07:55 UTC] Bernard dot Prevosto at ifremer dot 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.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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


R.
 [2002-01-07 02:21 UTC] lobbin@php.net
No feedback. Closed.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Apr 16 09:01:28 2024 UTC