php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #475 gethostbyname has unwanted functionality
Submitted: 1998-06-25 09:57 UTC Modified: 1998-06-25 17:39 UTC
From: sjanes at abies dot com Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 3.0 Final Release OS: Linux
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: sjanes at abies dot com
New email:
PHP Version: OS:

 

 [1998-06-25 09:57 UTC] sjanes at abies dot com
$result = gethostbyname("www.name.com");

outputs a warning which is unwanted, we can tell that if it returns 
the input that the look-up did not suceed.

Is there anyway to turn off this warning?

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1998-06-25 17:39 UTC] rasmus
Put a '@' in front of the call to kill the warning.  And yes, that warning is useless.  I'll turn it off for the next version.
 [2023-06-03 17:33 UTC] git@php.net
Automatic comment on behalf of saundefined
Revision: https://github.com/php/doc-ru/commit/810addc51b73ec6f4aa3834fe1937c1dcec4bf53
Log: Исправление опечатки
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jun 16 04:00:01 2026 UTC