fix state-machine in cases T_AAAA is not available

This commit is contained in:
Marcus Boerger 2002-12-30 11:59:22 +00:00
parent a213c71735
commit 426cf8eb57

View file

@ -548,10 +548,12 @@ PHP_FUNCTION(dns_get_record)
case 7: case 7:
type_to_fetch = type_param&PHP_DNS_TXT ? T_TXT : 0; type_to_fetch = type_param&PHP_DNS_TXT ? T_TXT : 0;
break; break;
#ifdef T_AAAA
case 8: case 8:
#ifdef T_AAAA
type_to_fetch = type_param&PHP_DNS_AAAA ? T_AAAA : 0; type_to_fetch = type_param&PHP_DNS_AAAA ? T_AAAA : 0;
break; break;
#else
continue;
#endif #endif
case 9: case 9:
store_results = 0; store_results = 0;