/PHP-7.2/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"));
|
H A D | bug54910.phpt | 17 if (is_callable($call)) {
|
/PHP-7.2/ext/standard/tests/general_functions/ |
H A D | is_callable_error.phpt | 2 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 D | is_callable_basic1.phpt | 2 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 D | is_callable_variation2.phpt | 2 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 D | is_callable_variation1.phpt | 2 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 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 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 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.2/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.2/ext/standard/ |
H A D | php_type.h | 40 PHP_FUNCTION(is_callable);
|
/PHP-7.2/ext/opcache/tests/ |
H A D | bug68104.phpt | 13 var_dump(is_callable("dl"));
|
H A D | bug76275.phpt | 17 if (!is_callable('random_bytes')) {
|