/PHP-8.2/Zend/tests/ |
H A D | exception_017.phpt | 9 function foo(callable $x) { 31 TypeError: foo(): Argument #1 ($x) must be of type callable, string given, called in %s:%d
|
H A D | callable_self_parent_static_deprecation.phpt | 30 foreach ($variants as $description => $callable) { 32 call_user_func($callable); 35 foreach ($variants as $description => $callable) { 37 call_user_func_array($callable, []); 42 foreach ($variants as $description => $callable) { 44 array_map($callable, [1]); 50 var_dump(is_callable($callable)); 53 echo "\n==> Test callable type hint\n"; 56 $this->callableTypeHint($callable); 60 public function callableTypeHint(callable $c) {} [all …]
|
H A D | first_class_callable_014.phpt | 2 First class callable with nullsafe method call (unrelated)
|
H A D | first_class_callable_012.phpt | 2 First class callable with nullsafe method call
|
H A D | first_class_callable_013.phpt | 2 First class callable with nullsafe method call (nested)
|
H A D | first_class_callable_assert.phpt | 2 Acquire callable to assert()
|
H A D | call_user_func_closure_from_static_method.phpt | 7 public static function exec(callable $c) {
|
H A D | bug70898.phpt | 2 Bug #70895 null ptr deref and segfault with crafted callable
|
H A D | bug71622.phpt | 2 Bug #71622 (Strings used in pass-as-reference cannot be used to invoke C::$callable())
|
/PHP-8.2/Zend/tests/closures/ |
H A D | closure_from_callable_basic.phpt | 44 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'; 109 Instance return private method as callable OK 110 Instance return private static method as callable OK 111 Instance return protected static method as callable OK
|
H A D | closure_from_callable_non_static_statically.phpt | 20 Failed to create closure from callable: non-static method A::method() cannot be called statically
|
/PHP-8.2/ext/pcntl/tests/ |
H A D | pcntl_signal.phpt | 35 pcntl_signal(SIGALRM, "not callable"); 50 pcntl_signal(): Argument #2 ($handler) must be of type callable|int, string given
|
/PHP-8.2/ext/xml/tests/ |
H A D | set_element_handler_trampoline_errors.phpt | 44 TypeError: xml_set_element_handler(): Argument #2 ($start_handler) must be of type callable|string|… 46 TypeError: xml_set_element_handler(): Argument #2 ($start_handler) must be of type callable|string|…
|
/PHP-8.2/ext/opcache/tests/opt/ |
H A D | gh8140b.phpt | 2 GH-8140 (Wrong first class callable by name optimization)
|
H A D | gh8140a.phpt | 2 GH-8140 (Wrong first class callable by name optimization)
|
/PHP-8.2/ext/simplexml/tests/ |
H A D | bug55098.phpt | 12 function test($nodes, $name, $callable) { 16 $callable($nodes);
|
/PHP-8.2/Zend/tests/nullsafe_operator/ |
H A D | 013.phpt | 6 function dump_error(callable $callable) { 8 var_dump($callable());
|
/PHP-8.2/ext/libxml/tests/ |
H A D | libxml_set_external_entity_loader_error2.phpt | 2 libxml_set_external_entity_loader() with non-callable argument
|
/PHP-8.2/Zend/ |
H A D | zend_API.c | 3739 lmname = Z_STR_P(callable); in zend_is_callable_check_func() 3743 zend_str_tolower_copy(ZSTR_VAL(lmname), Z_STRVAL_P(callable), Z_STRLEN_P(callable)); in zend_is_callable_check_func() 3755 if ((colon = zend_memrchr(Z_STRVAL_P(callable), ':', Z_STRLEN_P(callable))) != NULL && in zend_is_callable_check_func() 3815 mname = Z_STR_P(callable); in zend_is_callable_check_func() 3963 switch (Z_TYPE_P(callable)) { in zend_get_callable_name_ex() 4000 callable = Z_REFVAL_P(callable); in zend_get_callable_name_ex() 4036 switch (Z_TYPE_P(callable)) { in zend_is_callable_at_frame() 4100 callable = method; in zend_is_callable_at_frame() 4116 callable = Z_REFVAL_P(callable); in zend_is_callable_at_frame() 4153 array_init(callable); in zend_make_callable() [all …]
|
/PHP-8.2/Zend/tests/typehints/ |
H A D | or_null.phpt | 52 function callableF(?callable $param) {} 128 function returnCallable(): ?callable { 175 function returnMissingCallable(): ?callable { 219 TypeError: callableF(): Argument #1 ($param) must be of type ?callable, int given, called in %s:%d 251 TypeError: returnCallable(): Return value must be of type ?callable, int returned in %s:%d 271 TypeError: returnMissingCallable(): Return value must be of type ?callable, none returned in %s:%d
|
/PHP-8.2/ext/intl/tests/ |
H A D | breakiter___construct.phpt | 2 IntlBreakIterator::__construct() should not be callable
|
/PHP-8.2/Zend/tests/type_declarations/ |
H A D | add_return_type.phpt | 15 public function c() : callable;
|
/PHP-8.2/ext/date/tests/ |
H A D | DateInterval_construct_exceptions.phpt | 7 function check(callable $c)
|
/PHP-8.2/Zend/tests/nullable_types/ |
H A D | nullable_type_parameters_do_not_have_default_value.phpt | 6 function f(?callable $p) {}
|
/PHP-8.2/ext/pdo_sqlite/tests/ |
H A D | pdo_sqlite_createfunction_002.phpt | 3 un-callable function passed
|