]> granicus.if.org Git - php/commitdiff
Minor clarification in meaning of bitmask constants
authorSara Golemon <pollita@php.net>
Fri, 20 Dec 2002 18:34:56 +0000 (18:34 +0000)
committerSara Golemon <pollita@php.net>
Fri, 20 Dec 2002 18:34:56 +0000 (18:34 +0000)
/* PHP_DNS_xx = 1<<(T_xx-1) */
T_CNAME = 5 ergo PHP_DNS_CNAME should be 0x00000010.
T_SOA = 6 ergo PHP_DNS_CNAME should be 0x00000020.

ext/standard/dns.c

index 1479b061776c7bcb1cb861dbe18a25de1ac84551..a8b4c3981b11508d6462b9fdda0316ecca394e0d 100644 (file)
@@ -269,8 +269,8 @@ PHP_FUNCTION(dns_check_record)
 /* PHP_DNS_xx = 1<<(T_xx-1) */
 #define PHP_DNS_A      0x00000001
 #define PHP_DNS_NS     0x00000002
-#define PHP_DNS_CNAME  0x00000020
-#define PHP_DNS_SOA    0x00000040
+#define PHP_DNS_CNAME  0x00000010
+#define PHP_DNS_SOA    0x00000020
 #define PHP_DNS_PTR    0x00000800
 #define PHP_DNS_HINFO  0x00001000
 #define PHP_DNS_MX     0x00004000