Home
last modified time | relevance | path

Searched refs:is_callable (Results 1 – 25 of 34) sorted by relevance

12

/PHP-8.0/Zend/tests/
H A Dbug43651.phpt9 var_dump(is_callable("\\\\"));
10 var_dump(is_callable("\\"));
11 var_dump(is_callable("x\\"));
12 var_dump(is_callable("\\x"));
13 var_dump(is_callable("x\\x"));
14 var_dump(is_callable("x\\\\"));
15 var_dump(is_callable("\\x"));
16 var_dump(is_callable("x\\\\x"));
17 var_dump(is_callable("cd"));
18 var_dump(is_callable("Test\\"));
[all …]
H A Dclosure_016.phpt2 Closure 016: closures and is_callable()
17 var_dump(is_callable($test, true, $name));
19 var_dump(is_callable($test, false, $name));
21 var_dump(is_callable(array($test,"__invoke"), true, $name));
23 var_dump(is_callable(array($test,"__invoke"), false, $name));
26 var_dump(is_callable($test, true, $name));
28 var_dump(is_callable($test, false, $name));
30 var_dump(is_callable(array($test,"__invoke"), true, $name));
32 var_dump(is_callable(array($test,"__invoke"), false, $name));
H A Dbug63111.phpt2 Bug #63111 (is_callable() lies for abstract static method)
16 var_dump(is_callable(array("Foo", "bar")));
17 var_dump(is_callable("Foo::bar"));
18 var_dump(is_callable(array("MyInterface", "bar")));
19 var_dump(is_callable("MyInterface::bar"));
20 var_dump(is_callable(array("Bar", "foo")));
21 var_dump(is_callable("Bar::foo"));
H A Dbug29210.phpt19 if (is_callable(array($this,'test_func1'))) {
24 if (is_callable(array($this,'test_func2'))) {
29 if (is_callable(array('test_class','test_func3'))) {
34 if (is_callable(array('test_class','test_func4'))) {
44 if (is_callable(array($this,'test_func1'))) {
49 if (is_callable(array($this,'test_func2'))) {
54 if (is_callable(array('test_class','test_func3'))) {
69 if (is_callable(array($object,'test_func1'))) {
74 if (is_callable(array($object,'test_func2'))) {
79 if (is_callable(array('test_class','test_func3'))) {
[all …]
H A Dlsb_013.phpt2 ZE2 Late Static Binding is_callable() and static::method()
8 var_dump(is_callable("static::ok"));
9 var_dump(is_callable(array("static","ok")));
H A Dbug34678.phpt2 Bug #34678 (__call(), is_callable() and static methods)
17 if (is_callable(array('B', 'foo'))) {
20 if (is_callable(array('A', 'foo'))) {
H A Dbug48899.phpt2 Bug #48899 (is_callable returns true even if method does not exist in parent class)
10 var_dump(is_callable(array($this, 'parent::testIsCallable')));
13 var_dump(is_callable(array($this, 'static::testIsCallable2')));
H A Dbug65108.phpt2 Bug #65108 (is_callable() triggers Fatal Error)
12 $isCallable = is_callable(array(new C, 'f'));
23 $isCallable = is_callable(array('E', 'f'));
H A Dclosure_001.phpt14 var_dump(is_callable($lambda1));
15 var_dump(is_callable($lambda2));
H A Dis_callable_trampoline_uaf.phpt2 is_callable() with trampoline should not caused UAF
9 var_dump(is_callable(array('parent', 'foo')));
H A Dbug71622.phpt20 var_dump(is_callable("self::$method"));
H A Dbug54910.phpt17 if (is_callable($call)) {
/PHP-8.0/ext/standard/tests/general_functions/
H A Dis_callable_basic1.phpt2 Test is_callable() function : usage variations - defined functions
9 var_dump( is_callable($func) ); //given only $var argument
10 var_dump( is_callable($func, TRUE) ); //given $var and $syntax argument
11 var_dump( is_callable($func, TRUE, $callable_name) );
13 var_dump( is_callable($func, FALSE) ); //given $var and $syntax argument
14 var_dump( is_callable($func, FALSE, $callable_name) );
20 echo "\n*** Testing is_callable() on defined functions ***\n";
55 *** Testing is_callable() on defined functions ***
H A Dis_callable_variation2.phpt2 Test is_callable() function : usage variations - on invalid function names
9 var_dump( is_callable($func) ); //given only $var argument
10 var_dump( is_callable($func, TRUE) ); //given $var and $syntax argument
11 var_dump( is_callable($func, TRUE, $callable_name) );
13 var_dump( is_callable($func, FALSE) ); //given $var and $syntax argument
14 var_dump( is_callable($func, FALSE, $callable_name) );
20 echo "\n*** Testing is_callable() on invalid function names ***\n";
52 *** Testing is_callable() on invalid function names ***
H A Dis_callable_variation1.phpt2 Test is_callable() function : usage variations - undefined functions
9 var_dump( is_callable($func) ); //given only $var argument
10 var_dump( is_callable($func, TRUE) ); //given $var and $syntax argument
11 var_dump( is_callable($func, TRUE, $callable_name) );
13 var_dump( is_callable($func, FALSE) ); //given $var and $syntax argument
14 var_dump( is_callable($func, FALSE, $callable_name) );
20 echo "\n*** Testing is_callable() on undefined functions ***\n";
50 *** Testing is_callable() on undefined functions ***
H A Dbug47857.phpt2 Bug #47851 (is_callable throws fatal error)
10 var_dump(is_callable(array('foo','bar')));
16 var_dump(is_callable(array('Exception','getMessage')));
H A Dis_callable_abstract_method.phpt2 is_callable() on abstract method via object should return false
15 var_dump(is_callable($foo));
H A Dis_callable_anon.phpt2 Test is_callable() function : usage variations - anonymous class method
9 if (is_callable([$this, 'f'], false, $fname)) {
H A Dis_callable_basic2.phpt2 Test is_callable() function : usage variations - on objects
10 var_dump( is_callable($method) );
11 var_dump( is_callable($method, true) );
12 var_dump( is_callable($method, false) );
13 var_dump( is_callable($method, true, $callable_name) );
15 var_dump( is_callable($method, false, $callable_name) );
21 echo "\n*** Testing is_callable() on objects ***\n";
74 /* check is_callable() on static method */
119 *** Testing is_callable() on objects ***
121 ** Testing behavior of is_callable() on static methods **
[all …]
/PHP-8.0/ext/standard/tests/
H A Dbug75220.phpt2 Bug #75220 (is_callable crash for 'parent')
15 var_dump(is_callable('parent::foo'));
16 var_dump(is_callable(array('parent', 'foo')));
/PHP-8.0/ext/ffi/tests/
H A Dbug78543.phpt2 Bug #78543 (is_callable() on FFI\CData throws Exception)
9 var_dump(is_callable($test));
/PHP-8.0/ext/opcache/tests/opt/
H A Dblock_pass_001.phpt14 return is_callable($callback) ? $callback : function (...$args) use ($callback) {
/PHP-8.0/Zend/tests/traits/
H A Dbug76773.phpt12 if (\is_callable(array('parent', __FUNCTION__))) {
/PHP-8.0/ext/opcache/tests/
H A Dbug68104.phpt13 var_dump(is_callable("dl"));
H A Dbug76275.phpt15 if (!is_callable('random_bytes')) {

Completed in 34 milliseconds

12