Home
last modified time | relevance | path

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

12

/PHP-7.2/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 Dbug39127.phpt10 var_dump(is_callable(array($b,"a")));
11 var_dump(is_callable(array($b,"b")));
12 var_dump(is_callable(array($b,"__construct")));
H A Dclosure_001.phpt14 var_dump(is_callable($lambda1));
15 var_dump(is_callable($lambda2));
H A Dbug71622.phpt20 var_dump(is_callable("self::$method"));
H A Dbug54910.phpt17 if (is_callable($call)) {
/PHP-7.2/ext/standard/tests/general_functions/
H A Dis_callable_error.phpt2 Test is_callable() function
8 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] );
15 echo "\n-- Testing is_callable() function with less than expected no. of arguments --\n";
16 var_dump( is_callable() );
18 echo "\n-- Testing is_callable() function with more than expected no. of arguments --\n";
19 var_dump( is_callable("string", TRUE, $callable_name, "EXTRA") );
26 -- Testing is_callable() function with less than expected no. of arguments --
28 Warning: is_callable() expects at least 1 parameter, 0 given in %s on line %d
31 -- Testing is_callable() function with more than expected no. of arguments --
33 Warning: is_callable() expects at most 3 parameters, 4 given in %s on line %d
H A Dis_callable_basic1.phpt2 Test is_callable() function : usage variations - defined functions
8 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] );
21 var_dump( is_callable($func) ); //given only $var argument
22 var_dump( is_callable($func, TRUE) ); //given $var and $syntax argument
23 var_dump( is_callable($func, TRUE, $callable_name) );
25 var_dump( is_callable($func, FALSE) ); //given $var and $syntax argument
26 var_dump( is_callable($func, FALSE, $callable_name) );
32 echo "\n*** Testing is_callable() on defined functions ***\n";
68 *** Testing is_callable() on defined functions ***
H A Dis_callable_variation2.phpt2 Test is_callable() function : usage variations - on invalid function names
8 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] );
21 var_dump( is_callable($func) ); //given only $var argument
22 var_dump( is_callable($func, TRUE) ); //given $var and $syntax argument
23 var_dump( is_callable($func, TRUE, $callable_name) );
25 var_dump( is_callable($func, FALSE) ); //given $var and $syntax argument
26 var_dump( is_callable($func, FALSE, $callable_name) );
32 echo "\n*** Testing is_callable() on invalid function names ***\n";
65 *** Testing is_callable() on invalid function names ***
H A Dis_callable_variation1.phpt2 Test is_callable() function : usage variations - undefined functions
12 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] );
25 var_dump( is_callable($func) ); //given only $var argument
26 var_dump( is_callable($func, TRUE) ); //given $var and $syntax argument
27 var_dump( is_callable($func, TRUE, $callable_name) );
29 var_dump( is_callable($func, FALSE) ); //given $var and $syntax argument
30 var_dump( is_callable($func, FALSE, $callable_name) );
36 echo "\n*** Testing is_callable() on undefined functions ***\n";
67 *** 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')));
12 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
23 var_dump( is_callable($method) );
24 var_dump( is_callable($method, true) );
25 var_dump( is_callable($method, false) );
26 var_dump( is_callable($method, true, $callable_name) );
28 var_dump( is_callable($method, false, $callable_name) );
34 echo "\n*** Testing is_callable() on objects ***\n";
87 /* check is_callable() on static method */
132 *** Testing is_callable() on objects ***
134 ** Testing behavior of is_callable() on static methods **
[all …]
/PHP-7.2/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-7.2/tests/classes/
H A Dinheritance_005.phpt26 var_dump(is_callable(array($b, "B")));
29 var_dump(is_callable(array($b, "A")));
35 var_dump(is_callable(array($c, "A")));
38 var_dump(is_callable(array($c, "B")));
41 var_dump(is_callable(array($c, "C")));
/PHP-7.2/ext/standard/
H A Dphp_type.h40 PHP_FUNCTION(is_callable);
/PHP-7.2/ext/opcache/tests/
H A Dbug68104.phpt13 var_dump(is_callable("dl"));
H A Dbug76275.phpt17 if (!is_callable('random_bytes')) {

Completed in 26 milliseconds

12