php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #29743 getmxrr() doc has return type mismatch
Submitted: 2004-08-18 20:20 UTC Modified: 2004-08-18 21:35 UTC
From: scott at slerman dot net Assigned:
Status: Closed Package: Documentation problem
PHP Version: Irrelevant OS:
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: scott at slerman dot net
New email:
PHP Version: OS:

 

 [2004-08-18 20:20 UTC] scott at slerman dot net
Description:
------------
int getmxrr ( string hostname, array &mxhosts [, array &weight])

Searches DNS for MX records corresponding to hostname. Returns TRUE if any records are found; returns FALSE if no records were found or if an error occurred.

The header says the function returns an int, but the description (and my test on 5.0.1/Linux) says that the function always returns a boolean.


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-08-18 21:35 UTC] philip@php.net
Thank you for the report.  This bug is now fixed in CVS and will show up when the manual is next built.  Here's the diff:

http://cvs.php.net/diff.php/phpdoc/en/reference/network/functions/getmxrr.xml?r1=1.9&r2=1.10
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Nov 19 12:00:02 2025 UTC