Lines Matching refs:callable

2743 static int zend_is_callable_check_func(int check_flags, zval *callable, zend_fcall_info_cache *fcc,…  in zend_is_callable_check_func()  argument
2763 if (Z_STRVAL_P(callable)[0] == '\\') { in zend_is_callable_check_func() local
2764 mlen = Z_STRLEN_P(callable) - 1; in zend_is_callable_check_func()
2765 lmname = zend_str_tolower_dup(Z_STRVAL_P(callable) + 1, mlen); in zend_is_callable_check_func()
2767 mlen = Z_STRLEN_P(callable); in zend_is_callable_check_func()
2768 lmname = zend_str_tolower_dup(Z_STRVAL_P(callable), mlen); in zend_is_callable_check_func()
2780 if ((colon = zend_memrchr(Z_STRVAL_P(callable), ':', Z_STRLEN_P(callable))) != NULL && in zend_is_callable_check_func()
2781 colon > Z_STRVAL_P(callable) && in zend_is_callable_check_func()
2785 clen = colon - Z_STRVAL_P(callable); in zend_is_callable_check_func()
2786 mlen = Z_STRLEN_P(callable) - clen - 2; in zend_is_callable_check_func()
2788 if (colon == Z_STRVAL_P(callable)) { in zend_is_callable_check_func()
2800 …if (!zend_is_callable_check_class(Z_STRVAL_P(callable), clen, fcc, &strict_class, error TSRMLS_CC)… in zend_is_callable_check_func()
2811 mname = Z_STRVAL_P(callable) + clen + 2; in zend_is_callable_check_func()
2814 mlen = Z_STRLEN_P(callable); in zend_is_callable_check_func()
2815 mname = Z_STRVAL_P(callable); in zend_is_callable_check_func()
2821 … zend_spprintf(error, 0, "function '%s' not found or invalid function name", Z_STRVAL_P(callable)); in zend_is_callable_check_func()
3004 ZEND_API zend_bool zend_is_callable_ex(zval *callable, zval *object_ptr, uint check_flags, char **c… in zend_is_callable_ex() argument
3039 switch (Z_TYPE_P(callable)) { in zend_is_callable_ex()
3047 *callable_name_len = fcc->calling_scope->name_length + Z_STRLEN_P(callable) + sizeof("::") - 1; in zend_is_callable_ex()
3053 memcpy(ptr, Z_STRVAL_P(callable), Z_STRLEN_P(callable) + 1); in zend_is_callable_ex()
3056 *callable_name = estrndup(Z_STRVAL_P(callable), Z_STRLEN_P(callable)); in zend_is_callable_ex()
3057 *callable_name_len = Z_STRLEN_P(callable); in zend_is_callable_ex()
3064 ret = zend_is_callable_check_func(check_flags, callable, fcc, 0, error TSRMLS_CC); in zend_is_callable_ex()
3084 if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2) { in zend_is_callable_ex()
3085 zend_hash_index_find(Z_ARRVAL_P(callable), 0, (void **) &obj); in zend_is_callable_ex()
3086 zend_hash_index_find(Z_ARRVAL_P(callable), 1, (void **) &method); in zend_is_callable_ex()
3157 if (zend_hash_num_elements(Z_ARRVAL_P(callable)) == 2) { in zend_is_callable_ex()
3175 …if (Z_OBJ_HANDLER_P(callable, get_closure) && Z_OBJ_HANDLER_P(callable, get_closure)(callable, &fc… in zend_is_callable_ex()
3178 zend_class_entry *ce = Z_OBJCE_P(callable); /* TBFixed: what if it's overloaded? */ in zend_is_callable_ex()
3194 zend_make_printable_zval(callable, &expr_copy, &use_copy); in zend_is_callable_ex()
3205 ZEND_API zend_bool zend_is_callable(zval *callable, uint check_flags, char **callable_name TSRMLS_D… in zend_is_callable() argument
3207 return zend_is_callable_ex(callable, NULL, check_flags, callable_name, NULL, NULL, NULL TSRMLS_CC); in zend_is_callable()
3211 ZEND_API zend_bool zend_make_callable(zval *callable, char **callable_name TSRMLS_DC) /* {{{ */ in zend_make_callable() argument
3215 …if (zend_is_callable_ex(callable, NULL, IS_CALLABLE_STRICT, callable_name, NULL, &fcc, NULL TSRMLS… in zend_make_callable()
3216 if (Z_TYPE_P(callable) == IS_STRING && fcc.calling_scope) { in zend_make_callable()
3217 zval_dtor(callable); in zend_make_callable()
3218 array_init(callable); in zend_make_callable()
3219 add_next_index_string(callable, fcc.calling_scope->name, 1); in zend_make_callable()
3220 add_next_index_string(callable, fcc.function_handler->common.function_name, 1); in zend_make_callable()
3238 ZEND_API int zend_fcall_info_init(zval *callable, uint check_flags, zend_fcall_info *fci, zend_fcal… in zend_fcall_info_init() argument
3240 if (!zend_is_callable_ex(callable, NULL, check_flags, callable_name, NULL, fcc, error TSRMLS_CC)) { in zend_fcall_info_init()
3247 fci->function_name = callable; in zend_fcall_info_init()