#40234 [Opn->Fbk]: gethostbynamel always returns false when using PHP as CGI

From: Date: Thu, 25 Jan 2007 11:45:36 +0000
Subject: #40234 [Opn->Fbk]: gethostbynamel always returns false when using PHP as CGI
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108033@lists.php.net to get a copy of this message
ID: 40234 Updated by: tony2001@php.net Reported By: silverbanana at gmx dot de -Status: Open +Status: Feedback Bug Type: Network related Operating System: Windows XP SP2 PHP Version: 6CVS-2007-01-25 (snap) New Comment: Please try using this CVS snapshot: http://snaps.php.net/php5.2-latest.tar.gz For Windows: http://snaps.php.net/win32/php5.2-win32-latest.zip Previous Comments: ------------------------------------------------------------------------ [2007-01-25 11:42:39] silverbanana at gmx dot de Description: ------------ gethostbynamel always returns false, instead of giving useful results. This is however only the case when I use PHP as CGI. gethostbynamel works as expected when I use PHP as Apache module and also when I use it from the command line, but not when I use it as CGI. If this behaviour of gethostbynamel is intended or unavoidable, it should be mentioned in the manual for gethostbynamel. Reproduce code: --------------- <?php var_dump(gethostbynamel("localhost")); ?> Expected result: ---------------- List of addresses Actual result: -------------- FALSE ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=40234&edit=1

« previous php.bugs (#108033) next »