Skip to content

Commit 69fa157

Browse files
committed
Change error type
1 parent 5cb8676 commit 69fa157

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/curl/interface.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -820,7 +820,7 @@ static int curl_ssh_hostkeyfunction(void *clientp, int keytype, const char *key,
820820
zend_throw_error(NULL, "The CURLOPT_SSH_HOSTKEYFUNCTION callback must return either CURLKHMATCH_OK or CURLKHMATCH_MISMATCH");
821821
}
822822
} else {
823-
zend_type_error("The CURLOPT_SSH_HOSTKEYFUNCTION callback must return either CURLKHMATCH_OK or CURLKHMATCH_MISMATCH");
823+
zend_throw_error(NULL, "The CURLOPT_SSH_HOSTKEYFUNCTION callback must return either CURLKHMATCH_OK or CURLKHMATCH_MISMATCH");
824824
}
825825
}
826826
zval_ptr_dtor(&argv[0]);

0 commit comments

Comments
 (0)