Home
last modified time | relevance | path

Searched refs:callable (Results 1 – 25 of 59) sorted by relevance

123

/PHP-7.4/Zend/tests/
H A Dbug29210.phpt22 echo "test_func1 isn't callable from inside\n";
72 echo "test_func1 isn't callable from outside\n";
77 echo "test_func2 isn't callable from outside\n";
82 echo "test_func3 isn't callable from outside\n";
87 echo "test_func4 isn't callable from outside\n";
97 test_func1 isn't callable from outside
98 test_func2 isn't callable from outside
99 test_func3 isn't callable from outside
100 test_func4 isn't callable from outside
101 test_func1 isn't callable from child
[all …]
H A Dbug55705.phpt2 Bug #55705 (Omitting a callable typehinted argument causes a segfault)
5 function f(callable $c) {}
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 Dcall_user_func_closure_from_static_method.phpt7 public static function exec(callable $c) {
/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/Zend/tests/type_declarations/
H A Dcallable_003.phpt2 callable type#003
6 function foo(callable $a, $b, callable $c) {
9 function bar(callable $a = null) {
H A Dcallable_002.phpt2 callable type#002 - Reflection
7 static function foo(callable $arg) {}
9 function foo(callable $bar) {
11 $closure = function (callable $arg) {};
H A Dtyped_properties_053.phpt2 Typed properties disallow callable
6 public callable $a;
12 Fatal error: Property A::$a cannot have type callable in %s on line %d
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
H A Dcallable_001.phpt2 callable type#001
10 function foo(callable $bar) {
H A Dadd_return_type.phpt15 public function c() : callable;
/PHP-7.4/Zend/tests/return_types/
H A D011.phpt2 Function returned callable, expected callable
5 function foo() : callable {
H A D012.phpt2 Method returned callable, expected callable
6 public function bar() : callable {
H A D022.phpt12 $callable = $test();
13 var_dump($callable());
/PHP-7.4/ext/readline/tests/
H A Dreadline_completion_function_001.phpt23 Warning: readline_completion_function(): 1 is not callable in %s on line %d
25 Warning: readline_completion_function(): 1.1231 is not callable in %s on line %d
/PHP-7.4/ext/pdo_sqlite/tests/
H A Dpdo_sqlite_createfunction_002.phpt3 un-callable function passed
17 Warning: PDO::sqliteCreateFunction(): function 'bar' is not callable in %s on line %d
H A Dpdo_sqlite_createaggregate_002.phpt15 Warning: PDO::sqliteCreateAggregate(): function 'a' is not callable in %s on line %d
17 Warning: PDO::sqliteCreateAggregate(): function '' is not callable in %s on line %d
/PHP-7.4/ext/reflection/tests/
H A DReflectionType_possible_types.phpt13 function(): callable {},
31 string(8) "callable"
/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/ext/spl/tests/
H A Dbug73896.phpt6 public static function call($callable, array $args) {
7 return call_user_func_array($callable, [$args]);
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…
/PHP-7.4/ext/opcache/tests/
H A Dssa_bug_003.phpt8 function test1($x) : callable {
39 Error: Return value of test1() must be callable, string returned
/PHP-7.4/Zend/tests/closures/
H A Dclosure_from_callable_reflection.phpt26 foreach ($callables as $callable) {
27 $closure = Closure::fromCallable($callable);
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
/PHP-7.4/Zend/
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 …]

Completed in 42 milliseconds

123