#40234 [NEW]: gethostbynamel always returns false when using PHP as CGI
| From: | silverbanana at gmx dot de | Date: | Thu, 25 Jan 2007 11:42:39 +0000 |
| Subject: | #40234 [NEW]: gethostbynamel always returns false when using PHP as CGI | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-108031@lists.php.net to get a copy of this message | ||
From: silverbanana at gmx dot de
Operating system: Windows XP SP2
PHP version: 6CVS-2007-01-25 (snap)
PHP Bug Type: Network related
Bug description: gethostbynamel always returns false when using PHP as CGI
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 bug report at http://bugs.php.net/?id=40234&edit=1
--
Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=40234&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=40234&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=40234&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=40234&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=40234&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=40234&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=40234&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=40234&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=40234&r=support
Expected behavior: http://bugs.php.net/fix.php?id=40234&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=40234&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=40234&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=40234&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=40234&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=40234&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=40234&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=40234&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=40234&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=40234&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=40234&r=mysqlcfg