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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
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
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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Fri Mar 14 15:01:30 2025 UTC