Bug #75909 [NEW]: dns_get_record does not support CAA record type on Windows

From: Date: Fri, 02 Feb 2018 22:07:22 +0000
Subject: Bug #75909 [NEW]: dns_get_record does not support CAA record type on Windows
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-213790@lists.php.net to get a copy of this message
From:             philip at kerzap dot com
Operating system: Windows
PHP version:      7.2.2
Package:          Network related
Bug Type:         Bug
Bug description:dns_get_record does not support CAA record type on Windows

Description:
------------
Support for this record was added to dns_get_record in 7.0.16, but
Windows uses a separate implementation of dns_get_record (defined in
dns_win32.c) that did not get updated.

The DNS_CAA constant is defined on Windows.

Original bug: https://bugs.php.net/bug.php?id=73850
Original commit:
https://github.com/php/php-src/commit/280e9cb28d07a69e56ebcde4c368f3053298abe3

Test script:
---------------
var_dump(dns_get_record('google.com', DNS_CAA));

Expected result:
----------------
array(1) {
  [0]=>
  array(7) {
    ["host"]=>
    string(10) "google.com"
    ["class"]=>
    string(2) "IN"
    ["ttl"]=>
    int(60)
    ["type"]=>
    string(3) "CAA"
    ["flags"]=>
    int(0)
    ["tag"]=>
    string(5) "issue"
    ["value"]=>
    string(8) "pki.goog"
  }
}

Actual result:
--------------
PHP Warning: dns_get_record(): Type '8192' not supported in php shell
code on line 1
bool(false)

-- 
Edit bug report at https://bugs.php.net/bug.php?id=75909&edit=1
-- 
Try a snapshot (PHP 5.4):   https://bugs.php.net/fix.php?id=75909&r=trysnapshot54
Try a snapshot (PHP 5.5):   https://bugs.php.net/fix.php?id=75909&r=trysnapshot55
Try a snapshot (trunk):     https://bugs.php.net/fix.php?id=75909&r=trysnapshottrunk
Fixed in SVN:               https://bugs.php.net/fix.php?id=75909&r=fixed
Fixed in release:           https://bugs.php.net/fix.php?id=75909&r=alreadyfixed
Need backtrace:             https://bugs.php.net/fix.php?id=75909&r=needtrace
Need Reproduce Script:      https://bugs.php.net/fix.php?id=75909&r=needscript
Try newer version:          https://bugs.php.net/fix.php?id=75909&r=oldversion
Not developer issue:        https://bugs.php.net/fix.php?id=75909&r=support
Expected behavior:          https://bugs.php.net/fix.php?id=75909&r=notwrong
Not enough info:            https://bugs.php.net/fix.php?id=75909&r=notenoughinfo
Submitted twice:            https://bugs.php.net/fix.php?id=75909&r=submittedtwice
register_globals:           https://bugs.php.net/fix.php?id=75909&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=75909&r=php4
Daylight Savings:           https://bugs.php.net/fix.php?id=75909&r=dst
IIS Stability:              https://bugs.php.net/fix.php?id=75909&r=isapi
Install GNU Sed:            https://bugs.php.net/fix.php?id=75909&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=75909&r=float
No Zend Extensions:         https://bugs.php.net/fix.php?id=75909&r=nozend
MySQL Configuration Error:  https://bugs.php.net/fix.php?id=75909&r=mysqlcfg



Thread (4 messages)

« previous php.bugs (#213790) next »