From:             leon at leonatkinson dot com
Operating system: RedHat 7.3
PHP version:      5CVS-2003-02-20 (dev)
PHP Bug Type:     Network related
Bug description:  getmxrr() failing

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 bug report at http://bugs.php.net/?id=22339&edit=1
-- 
Try a CVS snapshot:         http://bugs.php.net/fix.php?id=22339&r=trysnapshot
Fixed in CVS:               http://bugs.php.net/fix.php?id=22339&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=22339&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=22339&r=needtrace
Try newer version:          http://bugs.php.net/fix.php?id=22339&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=22339&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=22339&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=22339&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=22339&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=22339&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22339&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=22339&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=22339&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=22339&r=gnused

Reply via email to