From: info at tvdw dot eu Operating system: any PHP version: 5.5.1 Package: Network related Bug Type: Feature/Change Request Bug description:Not all DNS types supported in dns_get_record
Description: ------------ For a little project I'm working on I need DNS_DS (43) and DNS_TLSA (52) support in dns_get_record, but these are currently not supported by PHP, together with a lot of other DNS records. Manually defining these constants to the correct DNS RRtype values gives the warning "dns_get_record(): Type .. not supported". Test script: --------------- <?php $ds_record = dns_get_record('com', DNS_DS); echo $ds_record['hash']; Expected result: ---------------- E2D3C916F6DEEAC73294E8268FB5885044A833FC5459588F4A9184CFC41A5766 Actual result: -------------- Notice: Use of undefined constant DNS_DS - assumed 'DNS_DS' in ... Warning: dns_get_record() expects parameter 2 to be long, string given in ... NULL -- Edit bug report at https://bugs.php.net/bug.php?id=65343&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65343&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65343&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65343&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65343&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65343&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65343&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65343&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65343&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65343&r=support Expected behavior: https://bugs.php.net/fix.php?id=65343&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65343&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65343&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65343&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65343&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65343&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65343&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65343&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65343&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65343&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65343&r=mysqlcfg