#22339 [Opn->Csd]: getmxrr() failing
| From: | sniper@php.net | Date: | Fri, 21 Feb 2003 08:46:03 +0000 |
| Subject: | #22339 [Opn->Csd]: getmxrr() failing | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-33784@lists.php.net to get a copy of this message | ||
ID: 22339
Updated by: sniper@php.net
Reported By: leon at leonatkinson dot com
-Status: Open
+Status: Closed
Bug Type: Network related
Operating System: RedHat 7.3
PHP Version: 5CVS-2003-02-20 (dev)
New Comment:
This bug has been fixed in CVS.
In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.
In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2003-02-20 16:48:31] leon at leonatkinson dot com
It looks like after getmxrr() became an alias to dns_get_mx(), it
doesn't understand that the second and third arguments are forced
references. Consider the following example.
<?
//OK
dns_get_mx("netscape.com", $mxrecord1, $weight1);
print_r($mxrecord1);
//Notices about mxrecord2 and weight being undefined
//and no data returned
getmxrr("netscape.com", $mxrecord2, $weight2);
print_r($mxrecord2);
?>
In 4.3, getmxrr() behaves correctly. I'm guessing that that
ext/standard/basic_functions.c needs a tweak to force the arguments to
be references, but I'm not familiar enough with the PHP_FE/PHP_FALIAS
macros to fix come up with a fix.
Thanks,
Leon
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22339&edit=1