ID: 12813
User updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Network related
Operating System: Linux
PHP Version: 4.0.6
New Comment:

It looks like the getaddrinfo function dont consider the /etc/hosts file so if a 
domain cant be converted to an ip using dns server then the error will show.

if i try to do:
include("on.my.etc.hosts.files/whatever") the error will show up

if i do 
include("my.real.domain.on.the.internet") everything will work fine

Frank "Pazzooo" Contrepois

Previous Comments:
------------------------------------------------------------------------

[2001-08-17 11:04:29] [EMAIL PROTECTED]

System Linux bato 2.2.19 #1 Thu Jun 7 10:44:22 Local time zone must be set--see zic 
manuali686 i686 unknown 

Build Date Aug 17 2001 

Configure Command  './configure' '--with-apxs=/usr/local/apache/bin/apxs' 
'--prefix=/usr/local/php' '--with-openssl=/usr/local/' '--with-pgsql' 
'--without-mysql' 

Server API Apache 

when I try to fopen or include an url i got 2 warning:

Warning: php_network_getaddresses: getaddrinfo failed: Name or service not known in 
/home/www/motoko/htdocs/cwnd-xml/parser-site-xml.php on line 374

Warning: Failed opening 
'http://www.motoko.lan/cwnd-xml/CORPO/cwnd-parser-materiale.php?url=cwnd-materiale.xml'
 for inclusion (include_path='.:/usr/local/php/lib/php') in 
/home/www/motoko/htdocs/cwnd-xml/parser-site-xml.php on line 374

everything work fine with windows using fopen

Frank "Pazzooo" Contrepois


------------------------------------------------------------------------



Edit this bug report at http://bugs.php.net/?id=12813&edit=1


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to