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

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 01:01:30 2024 UTC