}
}
if (!(fcc->function_handler->common.fn_flags & ZEND_ACC_PUBLIC) &&
- !(check_flags & IS_CALLABLE_CHECK_NO_ACCESS) &&
(fcc->calling_scope &&
((fcc->object && fcc->calling_scope->__call) ||
(!fcc->object && fcc->calling_scope->__callstatic)))) {
}
}
if (retval
- && !(fcc->function_handler->common.fn_flags & ZEND_ACC_PUBLIC)
- && !(check_flags & IS_CALLABLE_CHECK_NO_ACCESS)) {
+ && !(fcc->function_handler->common.fn_flags & ZEND_ACC_PUBLIC)) {
scope = zend_get_executed_scope();
if (fcc->function_handler->common.scope != scope) {
if ((fcc->function_handler->common.fn_flags & ZEND_ACC_PRIVATE)
ZEND_API ZEND_COLD void zend_wrong_param_count(void);
#define IS_CALLABLE_CHECK_SYNTAX_ONLY (1<<0)
-#define IS_CALLABLE_CHECK_NO_ACCESS (1<<1)
#define IS_CALLABLE_CHECK_SILENT (1<<3)
ZEND_API void zend_release_fcall_info_cache(zend_fcall_info_cache *fcc);
zval args[1];
int status;
- if (!option_array || !zend_is_callable(option_array, IS_CALLABLE_CHECK_NO_ACCESS, NULL)) {
+ if (!option_array || !zend_is_callable(option_array, 0, NULL)) {
php_error_docref(NULL, E_WARNING, "First argument is expected to be a valid callback");
zval_ptr_dtor(value);
ZVAL_NULL(value);