Home
last modified time | relevance | path

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

123

/PHP-7.1/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 %sexception_017.php…
H A Dcall_user_func_closure_from_static_method.phpt7 public static function exec(callable $c) {
/PHP-7.1/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.1/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 Dcallable_001.phpt2 callable type#001
10 function foo(callable $bar) {
H A Dadd_return_type.phpt15 public function c() : callable;
/PHP-7.1/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.1/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.1/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.1/ext/pcntl/tests/
H A Dpcntl_signal.phpt24 var_dump(pcntl_signal(SIGALRM, "not callable"));
45 Warning: pcntl_signal(): not callable is not a callable function name error in %s
/PHP-7.1/ext/reflection/tests/
H A DReflectionType_possible_types.phpt13 function(): callable {},
31 string(8) "callable"
/PHP-7.1/ext/interbase/tests/
H A Dbug45575.phpt20 Warning: ibase_set_event_handler(): Callback argument is not a callable function in %s on line %d
22 Warning: ibase_set_event_handler(): Callback argument 1 is not a callable function in %s on line %d
H A Dbug46247.phpt31 Warning: ibase_set_event_handler(): Callback argument foo is not a callable function in %s on line …
33 Warning: ibase_set_event_handler(): Callback argument foo is not a callable function in %s on line …
/PHP-7.1/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 method (cannot access protected method MyAutoLoader::noAcc…
/PHP-7.1/ext/opcache/tests/
H A Dssa_bug_003.phpt6 function test1($x) : callable {
37 Error: Return value of test1() must be callable, string returned
/PHP-7.1/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
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…

Completed in 29 milliseconds

123