|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19141 gethostbyname fails with complete http-address
Submitted: 2002-08-28 04:48 UTC Modified: 2002-08-28 04:51 UTC
From: thomasdkeller at web dot de Assigned:
Status: Not a bug Package: HTTP related
PHP Version: 4.2.2 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: thomasdkeller at web dot de
New email:
PHP Version: OS:


 [2002-08-28 04:48 UTC] thomasdkeller at web dot de
Hi there!

During my work on a link system i noticed that gethostbyname($string) fails, when $string contains an url with leading "http://" - shouldn't be there a small internal condition to prevent this failure?


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-08-28 04:51 UTC]
No, 'http://' is the protocol specification, and has nothing to do with the hostname.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Mon Jan 30 16:05:53 2023 UTC