Home
last modified time | relevance | path

Searched refs:callable (Results 26 – 50 of 99) sorted by relevance

1234

/PHP-8.2/Zend/tests/
H A Dexception_017.phpt9 function foo(callable $x) {
31 TypeError: foo(): Argument #1 ($x) must be of type callable, string given, called in %s:%d
H A Dcallable_self_parent_static_deprecation.phpt30 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 Dfirst_class_callable_014.phpt2 First class callable with nullsafe method call (unrelated)
H A Dfirst_class_callable_012.phpt2 First class callable with nullsafe method call
H A Dfirst_class_callable_013.phpt2 First class callable with nullsafe method call (nested)
H A Dfirst_class_callable_assert.phpt2 Acquire callable to assert()
H A Dcall_user_func_closure_from_static_method.phpt7 public static function exec(callable $c) {
H A Dbug70898.phpt2 Bug #70895 null ptr deref and segfault with crafted callable
H A Dbug71622.phpt2 Bug #71622 (Strings used in pass-as-reference cannot be used to invoke C::$callable())
/PHP-8.2/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';
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 Dclosure_from_callable_non_static_statically.phpt20 Failed to create closure from callable: non-static method A::method() cannot be called statically
/PHP-8.2/ext/pcntl/tests/
H A Dpcntl_signal.phpt35 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 Dset_element_handler_trampoline_errors.phpt44 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 Dgh8140b.phpt2 GH-8140 (Wrong first class callable by name optimization)
H A Dgh8140a.phpt2 GH-8140 (Wrong first class callable by name optimization)
/PHP-8.2/ext/simplexml/tests/
H A Dbug55098.phpt12 function test($nodes, $name, $callable) {
16 $callable($nodes);
/PHP-8.2/Zend/tests/nullsafe_operator/
H A D013.phpt6 function dump_error(callable $callable) {
8 var_dump($callable());
/PHP-8.2/ext/libxml/tests/
H A Dlibxml_set_external_entity_loader_error2.phpt2 libxml_set_external_entity_loader() with non-callable argument
/PHP-8.2/Zend/
H A Dzend_API.c3739 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 Dor_null.phpt52 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 Dbreakiter___construct.phpt2 IntlBreakIterator::__construct() should not be callable
/PHP-8.2/Zend/tests/type_declarations/
H A Dadd_return_type.phpt15 public function c() : callable;
/PHP-8.2/ext/date/tests/
H A DDateInterval_construct_exceptions.phpt7 function check(callable $c)
/PHP-8.2/Zend/tests/nullable_types/
H A Dnullable_type_parameters_do_not_have_default_value.phpt6 function f(?callable $p) {}
/PHP-8.2/ext/pdo_sqlite/tests/
H A Dpdo_sqlite_createfunction_002.phpt3 un-callable function passed

Completed in 91 milliseconds

1234