php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #20712 the hostname lookup is incorrrect
Submitted: 2002-11-29 02:42 UTC Modified: 2002-11-29 06:24 UTC
From: f dot labanvoye at cg70 dot fr Assigned:
Status: Not a bug Package: Performance problem
PHP Version: 4.3.0RC2 OS: linux
Private report: No CVE-ID: None
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
24 - 17 = ?
Subscribe to this entry?

 
 [2002-11-29 02:42 UTC] f dot labanvoye at cg70 dot fr
Hello,

I found performance problem in the hostnmae lookup in php-4.3.0RC2 on linux.  Windows platform works fine.

<?php

$localhost = 'localhost';
$ds = ldap_connect ( $localhost );
ldap_bind ( $ds );

?>

When i run this script, php make a dns lookup to find the name localhost and if not found make a local search (/etc/hosts). 
Normaly, it should search first in the /etc/hosts file and next make dns lookup.

the /etc/hosts and /etc/nsswitch.conf is good.

Thanks

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-11-29 06:24 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Mar 28 22:01:26 2024 UTC