summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSara Golemon <pollita@php.net>2002-12-20 18:34:56 +0000
committerSara Golemon <pollita@php.net>2002-12-20 18:34:56 +0000
commit13308b5a94e5b99fb81e9970bd8ef47b3065aac7 (patch)
tree99cfc4efa95c659cb275272f5c62b485225c9aab
parentefd314e7676ee15fce07e282b0655b539eb1f5cc (diff)
downloadphp-git-13308b5a94e5b99fb81e9970bd8ef47b3065aac7.tar.gz
Minor clarification in meaning of bitmask constants
/* 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.
-rw-r--r--ext/standard/dns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/dns.c b/ext/standard/dns.c
index 1479b06177..a8b4c3981b 100644
--- a/ext/standard/dns.c
+++ b/ext/standard/dns.c
@@ -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