Skip to content

Commit 1f5578c

Browse files
committed
Promote warning to exception in dns_check_record() function
1 parent 6d55283 commit 1f5578c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/dns_win32.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,8 @@ PHP_FUNCTION(dns_check_record)
107107
}
108108

109109
if (hostname_len == 0) {
110-
php_error_docref(NULL, E_WARNING, "Host cannot be empty");
111-
RETURN_FALSE;
110+
zend_value_error("Host cannot be empty");
111+
return;
112112
}
113113

114114
if (rectype) {

0 commit comments

Comments
 (0)