Revert "Make sure we are allowed to call the given callable"

IS_CALLABLE_CHECK_NO_ACCESS is Removed from PHP 8.0.

This reverts commit a73cba756c.
This commit is contained in:
Casper Langemeijer
2021-03-01 21:13:10 +01:00
parent 54098d45ba
commit 37bdf77458

2
ssh2.c
View File

@@ -222,7 +222,7 @@ static int php_ssh2_set_callback(LIBSSH2_SESSION *session, HashTable *ht, char *
}
zend_string_release(callback_zstring);
if (!zend_is_callable(handler, IS_CALLABLE_CHECK_NO_ACCESS, NULL)) {
if (!zend_is_callable(handler, 0, NULL)) {
return -1;
}