Bug #78293 [NEW]: Raw DNS resolving of MX records not supported

From: Date: Mon, 15 Jul 2019 11:03:17 +0000
Subject: Bug #78293 [NEW]: Raw DNS resolving of MX records not supported
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-221778@lists.php.net to get a copy of this message
From: daniil at daniil dot it Operating system: Arch linux PHP version: 7.3.7 Package: Network related Bug Type: Bug Bug description:Raw DNS resolving of MX records not supported Description: ------------ When resolving MX records with the dns_get_record function, getting the raw record data isn't supported for some reason. Test script: --------------- <?php echo ("Normal:\n"); var_dump(dns_get_record('daniil.it', DNS_MX, $auth, $add, false)); var_dump($auth, $add); echo ("\nRaw:\n"); var_dump(dns_get_record('daniil.it', DNS_MX, $auth, $add, true)); var_dump($auth, $add) Expected result: ---------------- Normal: array(1) { [0]=> array(6) { ["host"]=> string(9) "daniil.it" ["class"]=> string(2) "IN" ["ttl"]=> int(300) ["type"]=> string(2) "MX" ["pri"]=> int(10) ["target"]=> string(13) "mx.yandex.net" } } NULL NULL Raw: array(1) { [0]=> array(6) { ["host"]=> string(9) "daniil.it" ["class"]=> string(2) "IN" ["ttl"]=> int(300) ["type"]=> int(16384) ["data"]=> string(X) "binary data representing MX record" } } NULL NUL Actual result: -------------- Normal: array(1) { [0]=> array(6) { ["host"]=> string(9) "daniil.it" ["class"]=> string(2) "IN" ["ttl"]=> int(300) ["type"]=> string(2) "MX" ["pri"]=> int(10) ["target"]=> string(13) "mx.yandex.net" } } NULL NULL Raw: array(0) { } NULL NUL -- Edit bug report at https://bugs.php.net/bug.php?id=78293&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=78293&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=78293&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=78293&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=78293&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78293&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78293&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78293&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78293&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78293&r=support Expected behavior: https://bugs.php.net/fix.php?id=78293&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78293&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78293&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78293&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=78293&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=78293&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78293&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78293&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78293&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78293&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78293&r=mysqlcfg

« previous php.bugs (#221778) next »