Home
last modified time | relevance | path

Searched refs:callable (Results 1 – 25 of 59) sorted by last modified time

123

/PHP-7.4/Zend/
H A Dzend_closures.c281 static int zend_create_closure_from_callable(zval *return_value, zval *callable, char **error) /* {… in zend_create_closure_from_callable() argument
287 if (!zend_is_callable_ex(callable, NULL, 0, NULL, &fcc, error)) { in zend_create_closure_from_callable()
341 zval *callable; in ZEND_METHOD() local
345 if (zend_parse_parameters(ZEND_NUM_ARGS(), "z", &callable) == FAILURE) { in ZEND_METHOD()
349 if (Z_TYPE_P(callable) == IS_OBJECT && instanceof_function(Z_OBJCE_P(callable), zend_ce_closure)) { in ZEND_METHOD()
351 RETURN_ZVAL(callable, 1, 0); in ZEND_METHOD()
356 success = zend_create_closure_from_callable(return_value, callable, &error); in ZEND_METHOD()
638 ZEND_ARG_INFO(0, callable)
H A Dzend_API.c3041 lmname = Z_STR_P(callable); in zend_is_callable_check_func()
3045 zend_str_tolower_copy(ZSTR_VAL(lmname), Z_STRVAL_P(callable), Z_STRLEN_P(callable)); in zend_is_callable_check_func()
3057 if ((colon = zend_memrchr(Z_STRVAL_P(callable), ':', Z_STRLEN_P(callable))) != NULL && in zend_is_callable_check_func()
3095 mname = Z_STR_P(callable); in zend_is_callable_check_func()
3278 switch (Z_TYPE_P(callable)) { in zend_get_callable_name_ex()
3324 callable = Z_REFVAL_P(callable); in zend_get_callable_name_ex()
3357 switch (Z_TYPE_P(callable)) { in zend_is_callable_impl()
3420 callable = method; in zend_is_callable_impl()
3453 callable = Z_REFVAL_P(callable); in zend_is_callable_impl()
3483 zval_ptr_dtor_str(callable); in zend_make_callable()
[all …]
H A Dzend_API.h307 ZEND_API zend_string *zend_get_callable_name_ex(zval *callable, zend_object *object);
308 ZEND_API zend_string *zend_get_callable_name(zval *callable);
309 ZEND_API zend_bool zend_is_callable_ex(zval *callable, zend_object *object, uint32_t check_flags, z…
310 ZEND_API zend_bool zend_is_callable(zval *callable, uint32_t check_flags, zend_string **callable_na…
311 ZEND_API zend_bool zend_make_callable(zval *callable, zend_string **callable_name);
482 ZEND_API int zend_fcall_info_init(zval *callable, uint32_t check_flags, zend_fcall_info *fci, zend_…
/PHP-7.4/sapi/fpm/tests/
H A Dstatus.inc70 * @param null|callable $nameTransformer
71 * @param null|callable $valueTransformer
/PHP-7.4/
H A DUPGRADING536 . bool sapi_windows_set_ctrl_handler(callable handler, [, bool add = true]) -
H A DCONTRIBUTING.md375 6. If you modified a function that is callable from PHP, prepend PHP to the
/PHP-7.4/ext/pdo/
H A Dpdo_stmt.c757 static int make_callable_ex(pdo_stmt_t *stmt, zval *callable, zend_fcall_info * fci, zend_fcall_inf… in make_callable_ex() argument
761 if (zend_fcall_info_init(callable, 0, fci, fcc, NULL, &is_callable_error) == FAILURE) { in make_callable_ex()
/PHP-7.4/ext/standard/
H A Dbasic_functions.c2718 ZEND_ARG_INFO(0, callable)
/PHP-7.4/ext/readline/tests/
H A Dlibedit_callback_handler_install_001.phpt24 Warning: readline_callback_handler_install(): foobar! is not callable in %s on line %d
H A Dreadline_callback_handler_install_001.phpt22 Warning: readline_callback_handler_install(): foobar! is not callable in %s on line %d
/PHP-7.4/ext/xsl/
H A Dxsltprocessor.c189 zend_string *callable = NULL; in xsl_ext_function_php() local
328 if (!zend_make_callable(&handler, &callable)) { in xsl_ext_function_php()
329 php_error_docref(NULL, E_WARNING, "Unable to call handler %s()", ZSTR_VAL(callable)); in xsl_ext_function_php()
331 …n->registerPhpFunctions == 2 && zend_hash_exists(intern->registered_phpfunctions, callable) == 0) { in xsl_ext_function_php()
332 php_error_docref(NULL, E_WARNING, "Not allowed to call handler '%s()'", ZSTR_VAL(callable)); in xsl_ext_function_php()
368 zend_string_release_ex(callable, 0); in xsl_ext_function_php()
/PHP-7.4/ext/pcntl/tests/
H A Dpcntl_signal.phpt24 var_dump(pcntl_signal(SIGALRM, "not callable"));
45 Warning: pcntl_signal(): Specified handler "not callable" is not callable (%s) in %s
/PHP-7.4/tests/classes/
H A Dinheritance_005.phpt25 echo "Is B::B() callable?\n";
28 echo "Is B::A() callable?\n";
34 echo "Is C::A() callable?\n";
37 echo "Is C::B() callable?\n";
40 echo "Is C::C() callable?\n";
47 Is B::B() callable?
49 Is B::A() callable?
53 Is C::A() callable?
55 Is C::B() callable?
57 Is C::C() callable?
/PHP-7.4/ext/spl/tests/
H A Dspl_autoload_007.phpt63 Function 'MyAutoLoader::noAccess' not callable (cannot access protected method MyAutoLoader::noAcce…
69 Function 'MyAutoLoader::dynaLoad' not callable (non-static method MyAutoLoader::dynaLoad() should n…
85 Passed array does not specify a callable static method (cannot access protected method MyAutoLoader…
119 Passed array does not specify a callable static method (cannot access protected method MyAutoLoader…
H A Dspl_autoload_008.phpt83 LogicException: Function 'MyAutoLoader::dynaLoad' not callable (non-static method MyAutoLoader::dyn…
/PHP-7.4/ext/snmp/tests/
H A Dreflection.phpt8 /* ALL PHP_ME user callable methods of SNMP class should appear here */
/PHP-7.4/ext/oci8/tests/
H A Dreflection1.phpt8 /* ALL PHP_FE or PHP_ALIAS user callable functions should appear here */
/PHP-7.4/ext/dom/
H A Dxpath.c81 zend_string *callable = NULL; in dom_xpath_ext_function_php() local
194 if (!zend_make_callable(&fci.function_name, &callable)) { in dom_xpath_ext_function_php()
195 php_error_docref(NULL, E_WARNING, "Unable to call handler %s()", ZSTR_VAL(callable)); in dom_xpath_ext_function_php()
196 …n->registerPhpFunctions == 2 && zend_hash_exists(intern->registered_phpfunctions, callable) == 0) { in dom_xpath_ext_function_php()
197 php_error_docref(NULL, E_WARNING, "Not allowed to call handler '%s()'.", ZSTR_VAL(callable)); in dom_xpath_ext_function_php()
227 zend_string_release_ex(callable, 0); in dom_xpath_ext_function_php()
/PHP-7.4/Zend/tests/type_declarations/
H A Dcallable_001.phpt2 callable type#001
10 function foo(callable $bar) {
H A Dtyped_properties_054.phpt2 Typed properties disallow callable (nullable variant)
6 public ?callable $a;
12 Fatal error: Property A::$a cannot have type callable in %s on line %d
/PHP-7.4/Zend/tests/closures/
H A Dclosure_from_callable_basic.phpt44 echo "Instance return private method as callable";
49 echo "Instance return private static method as callable";
54 echo 'Instance return protected static method as callable';
110 Instance return private method as callable OK
111 Instance return private static method as callable OK
112 Instance return protected static method as callable OK
H A Dclosure_from_callable_non_static_statically.phpt20 Failed to create closure from callable: non-static method A::method() should not be called statical…
/PHP-7.4/Zend/tests/
H A Dexception_017.phpt9 function foo(callable $x) {
33 Exception: Argument 1 passed to foo() must be callable, string given, called in %s on line %d
H A Dbug70895.phpt2 Bug #70895 null ptr deref and segfault with crafted callable
H A Dbug70898.phpt2 Bug #70895 null ptr deref and segfault with crafted callable

Completed in 88 milliseconds

123