php.net |  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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
18 - 7 = ?
Subscribe to this entry?

 
 [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?



Patches

Add a Patch

Pull Requests

Add a Pull Request

History

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

Derick
 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Sun Sep 26 10:03:36 2021 UTC