php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #30270 Remote Hostname Not Found on Win98
Submitted: 2004-09-29 08:50 UTC Modified: 2005-04-05 19:35 UTC
Votes:1
Avg. Score:5.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: trustpunk at hotmail dot com Assigned:
Status: Closed Package: *General Issues
PHP Version: 4.3.9 OS: Windows 98
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: trustpunk at hotmail dot com
New email:
PHP Version: OS:

 

 [2004-09-29 08:50 UTC] trustpunk at hotmail dot com
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. :(


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-09-29 09:13 UTC] trustpunk at hotmail dot com
I want someone to test both codes on a Windows 98 and tell
me if this processes correctly like it did on my Windows XP.
 [2004-10-01 09:43 UTC] sniper@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

It's either a bug in win98 or some configuration issue, not bug in PHP.
 [2005-04-05 19:35 UTC] trustpunk at hotmail dot com
I just wanted to say that this bug is fixed in v4.3.11
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Sat Aug 09 01:00:02 2025 UTC