Lines Matching refs:callable

2799 static int zend_is_callable_check_func(int check_flags, zval *callable, zend_fcall_info_cache *fcc,…  in zend_is_callable_check_func()  argument
2819 if (Z_STRVAL_P(callable)[0] == '\\') { in zend_is_callable_check_func() local
2820 mlen = Z_STRLEN_P(callable) - 1; in zend_is_callable_check_func()
2821 lmname = zend_str_tolower_dup(Z_STRVAL_P(callable) + 1, mlen); in zend_is_callable_check_func()
2823 mlen = Z_STRLEN_P(callable); in zend_is_callable_check_func()
2824 lmname = zend_str_tolower_dup(Z_STRVAL_P(callable), mlen); in zend_is_callable_check_func()
2836 if ((colon = zend_memrchr(Z_STRVAL_P(callable), ':', Z_STRLEN_P(callable))) != NULL && in zend_is_callable_check_func()
2837 colon > Z_STRVAL_P(callable) && in zend_is_callable_check_func()
2841 clen = colon - Z_STRVAL_P(callable); in zend_is_callable_check_func()
2842 mlen = Z_STRLEN_P(callable) - clen - 2; in zend_is_callable_check_func()
2844 if (colon == Z_STRVAL_P(callable)) { in zend_is_callable_check_func()
2856 …if (!zend_is_callable_check_class(Z_STRVAL_P(callable), clen, fcc, &strict_class, error TSRMLS_CC)… in zend_is_callable_check_func()
2867 mname = Z_STRVAL_P(callable) + clen + 2; in zend_is_callable_check_func()
2870 mlen = Z_STRLEN_P(callable); in zend_is_callable_check_func()
2871 mname = Z_STRVAL_P(callable); in zend_is_callable_check_func()
2877 … zend_spprintf(error, 0, "function '%s' not found or invalid function name", Z_STRVAL_P(callable)); in zend_is_callable_check_func()
3060 ZEND_API zend_bool zend_is_callable_ex(zval *callable, zval *object_ptr, uint check_flags, char **c… in zend_is_callable_ex() argument
3095 switch (Z_TYPE_P(callable)) { in zend_is_callable_ex()
3103 *callable_name_len = fcc->calling_scope->name_length + Z_STRLEN_P(callable) + sizeof("::") - 1; in zend_is_callable_ex()
3109 memcpy(ptr, Z_STRVAL_P(callable), Z_STRLEN_P(callable) + 1); in zend_is_callable_ex()
3112 *callable_name = estrndup(Z_STRVAL_P(callable), Z_STRLEN_P(callable)); in zend_is_callable_ex()
3113 *callable_name_len = Z_STRLEN_P(callable); in zend_is_callable_ex()
3120 ret = zend_is_callable_check_func(check_flags, callable, fcc, 0, error TSRMLS_CC); in zend_is_callable_ex()
3140 if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2) { in zend_is_callable_ex()
3141 zend_hash_index_find(Z_ARRVAL_P(callable), 0, (void **) &obj); in zend_is_callable_ex()
3142 zend_hash_index_find(Z_ARRVAL_P(callable), 1, (void **) &method); in zend_is_callable_ex()
3213 if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2) { in zend_is_callable_ex()
3231 …if (Z_OBJ_HANDLER_P(callable, get_closure) && Z_OBJ_HANDLER_P(callable, get_closure)(callable, &fc… in zend_is_callable_ex()
3234 zend_class_entry *ce = Z_OBJCE_P(callable); /* TBFixed: what if it's overloaded? */ in zend_is_callable_ex()
3250 zend_make_printable_zval(callable, &expr_copy, &use_copy); in zend_is_callable_ex()
3261 ZEND_API zend_bool zend_is_callable(zval *callable, uint check_flags, char **callable_name TSRMLS_D… in zend_is_callable() argument
3263 return zend_is_callable_ex(callable, NULL, check_flags, callable_name, NULL, NULL, NULL TSRMLS_CC); in zend_is_callable()
3267 ZEND_API zend_bool zend_make_callable(zval *callable, char **callable_name TSRMLS_DC) /* {{{ */ in zend_make_callable() argument
3271 …if (zend_is_callable_ex(callable, NULL, IS_CALLABLE_STRICT, callable_name, NULL, &fcc, NULL TSRMLS… in zend_make_callable()
3272 if (Z_TYPE_P(callable) == IS_STRING && fcc.calling_scope) { in zend_make_callable()
3273 zval_dtor(callable); in zend_make_callable()
3274 array_init(callable); in zend_make_callable()
3275 add_next_index_string(callable, fcc.calling_scope->name, 1); in zend_make_callable()
3276 add_next_index_string(callable, fcc.function_handler->common.function_name, 1); in zend_make_callable()
3294 ZEND_API int zend_fcall_info_init(zval *callable, uint check_flags, zend_fcall_info *fci, zend_fcal… in zend_fcall_info_init() argument
3296 if (!zend_is_callable_ex(callable, NULL, check_flags, callable_name, NULL, fcc, error TSRMLS_CC)) { in zend_fcall_info_init()
3303 fci->function_name = callable; in zend_fcall_info_init()