From:             trustpunk at hotmail dot com
Operating system: Windows 98
PHP version:      4.3.9
PHP Bug Type:     *General Issues
Bug description:  Remote Hostname Not Found on Win98

Description:
------------
I have been testing this script thAT I recently developed 
to search for an ISP/Hostname on my windows XP but when I
tested it on my actual server which is a Win98 , it didn't
want to read any hostnames from a domain or IP Address.

Im just wondering , is this not compatible with Windows 98
because I don't understand why it works on WinXP with the
same exact PHP version which is 4.3.9. I did do a search.



Reproduce code:
---------------
01. IP Address: Example

<?php 
$ipaddr = "68.47.121.23";          //IP Address Entered
$host   = gethostbyaddr($ipaddr); //IP To Hostname
echo "Your Hostname: $host";
?>


02. Domain Address: Example

<?php
$domain = "www.trustabyss.com";    //Domain Entered
$getip  = gethostbyname($domain); //changes to IP
$host   = gethostbyaddr($getip); //IP To Hostname
echo "Your Hostname: $host";
?>

Expected result:
----------------
The first example should turn a IP Address into a hostname.
Now I understand that not all IP's have hostnames but this
IP Address does. When I view this on my WinXP it shows just
perfectly but if im viewing this on my Win98 , it shows my
local hostname only. Same goes for the second example.

Note: This is a remote IP Address so their is no reason for
it to show my local hostname , this is driving me mad. :(


-- 
Edit bug report at http://bugs.php.net/?id=30270&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30270&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30270&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30270&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30270&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30270&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30270&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30270&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30270&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30270&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30270&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30270&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30270&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30270&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30270&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30270&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30270&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30270&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30270&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30270&r=mysqlcfg

Reply via email to