From:             [EMAIL PROTECTED]
Operating system: linux
PHP version:      4.3.0RC2
PHP Bug Type:     Performance problem
Bug description:  the hostname lookup is incorrrect

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
-- 
Edit bug report at http://bugs.php.net/?id=20712&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=20712&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=20712&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=20712&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=20712&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=20712&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=20712&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=20712&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=20712&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=20712&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=20712&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=20712&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=20712&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=20712&r=isapi

Reply via email to