/PHP-7.3/Zend/tests/ |
H A D | bug43651.phpt | 9 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 D | closure_016.phpt | 2 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 D | bug63111.phpt | 2 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 D | bug29210.phpt | 19 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 D | lsb_013.phpt | 2 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 D | bug34678.phpt | 2 Bug #34678 (__call(), is_callable() and static methods) 17 if (is_callable(array('B', 'foo'))) { 20 if (is_callable(array('A', 'foo'))) {
|
H A D | bug48899.phpt | 2 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 D | bug65108.phpt | 2 Bug #65108 (is_callable() triggers Fatal Error) 12 $isCallable = is_callable(array(new C, 'f')); 23 $isCallable = is_callable(array('E', 'f'));
|
H A D | bug39127.phpt | 10 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 D | closure_001.phpt | 14 var_dump(is_callable($lambda1)); 15 var_dump(is_callable($lambda2));
|
H A D | bug71622.phpt | 20 var_dump(is_callable("self::$method"));
|
/PHP-7.3/ext/standard/tests/general_functions/ |
H A D | is_callable_error.phpt | 2 Test is_callable() function 5 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] ); 12 echo "\n-- Testing is_callable() function with less than expected no. of arguments --\n"; 13 var_dump( is_callable() ); 15 echo "\n-- Testing is_callable() function with more than expected no. of arguments --\n"; 16 var_dump( is_callable("string", TRUE, $callable_name, "EXTRA") ); 23 -- Testing is_callable() function with less than expected no. of arguments -- 25 Warning: is_callable() expects at least 1 parameter, 0 given in %s on line %d 28 -- Testing is_callable() function with more than expected no. of arguments -- 30 Warning: is_callable() expects at most 3 parameters, 4 given in %s on line %d
|
H A D | is_callable_basic1.phpt | 2 Test is_callable() function : usage variations - defined functions 5 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] ); 18 var_dump( is_callable($func) ); //given only $var argument 19 var_dump( is_callable($func, TRUE) ); //given $var and $syntax argument 20 var_dump( is_callable($func, TRUE, $callable_name) ); 22 var_dump( is_callable($func, FALSE) ); //given $var and $syntax argument 23 var_dump( is_callable($func, FALSE, $callable_name) ); 29 echo "\n*** Testing is_callable() on defined functions ***\n"; 65 *** Testing is_callable() on defined functions ***
|
H A D | is_callable_variation2.phpt | 2 Test is_callable() function : usage variations - on invalid function names 5 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] ); 18 var_dump( is_callable($func) ); //given only $var argument 19 var_dump( is_callable($func, TRUE) ); //given $var and $syntax argument 20 var_dump( is_callable($func, TRUE, $callable_name) ); 22 var_dump( is_callable($func, FALSE) ); //given $var and $syntax argument 23 var_dump( is_callable($func, FALSE, $callable_name) ); 29 echo "\n*** Testing is_callable() on invalid function names ***\n"; 62 *** Testing is_callable() on invalid function names ***
|
H A D | is_callable_variation1.phpt | 2 Test is_callable() function : usage variations - undefined functions 9 /* Prototype: bool is_callable ( mixed $var [, bool $syntax_only [, string &$callable_name]] ); 22 var_dump( is_callable($func) ); //given only $var argument 23 var_dump( is_callable($func, TRUE) ); //given $var and $syntax argument 24 var_dump( is_callable($func, TRUE, $callable_name) ); 26 var_dump( is_callable($func, FALSE) ); //given $var and $syntax argument 27 var_dump( is_callable($func, FALSE, $callable_name) ); 33 echo "\n*** Testing is_callable() on undefined functions ***\n"; 64 *** Testing is_callable() on undefined functions ***
|
H A D | bug47857.phpt | 2 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 D | is_callable_abstract_method.phpt | 2 is_callable() on abstract method via object should return false 15 var_dump(is_callable($foo));
|
H A D | is_callable_anon.phpt | 2 Test is_callable() function : usage variations - anonymous class method 9 if (is_callable([$this, 'f'], false, $fname)) {
|
H A D | is_callable_basic2.phpt | 2 Test is_callable() function : usage variations - on objects 20 var_dump( is_callable($method) ); 21 var_dump( is_callable($method, true) ); 22 var_dump( is_callable($method, false) ); 23 var_dump( is_callable($method, true, $callable_name) ); 25 var_dump( is_callable($method, false, $callable_name) ); 31 echo "\n*** Testing is_callable() on objects ***\n"; 84 /* check is_callable() on static method */ 129 *** Testing is_callable() on objects *** 131 ** Testing behavior of is_callable() on static methods ** [all …]
|
/PHP-7.3/ext/standard/tests/ |
H A D | bug75220.phpt | 2 Bug #75220 (is_callable crash for 'parent') 15 var_dump(is_callable('parent::foo')); 16 var_dump(is_callable(array('parent', 'foo')));
|
/PHP-7.3/tests/classes/ |
H A D | inheritance_005.phpt | 26 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.3/ext/standard/ |
H A D | php_type.h | 38 PHP_FUNCTION(is_callable);
|
/PHP-7.3/Zend/tests/traits/ |
H A D | bug76773.phpt | 12 if (\is_callable(array('parent', __FUNCTION__))) {
|
/PHP-7.3/ext/opcache/tests/ |
H A D | bug68104.phpt | 13 var_dump(is_callable("dl"));
|
H A D | bug76275.phpt | 15 if (!is_callable('random_bytes')) {
|