Searched refs:function (Results 351 – 375 of 8923) sorted by relevance
1...<<11121314151617181920>>...357
/php-src/Zend/tests/ |
H A D | bug62991.phpt | 6 function test( array $array ) 8 $closure = function() use ( $array ) { 15 function test2( array $array ) 17 $closure = function() use ( $array ) { 21 return $closure; // if you return the $closure and call it outside this function it works.
|
H A D | magic_methods_001.phpt | 7 function __unset($a) { 12 public function __call($a, $b) { 16 function __clone() { 19 static public function __callstatic($a, $b) { 23 public function __tostring() {
|
H A D | bug24635.phpt | 7 function __construct() { $this->page = new PageClass(); } 10 function Display() { 16 function __construct($comment) { 19 function __destruct() { 24 function out($code) { return; }
|
H A D | bug79657.phpt | 6 function throwException(): iterable 11 function loop(): iterable 14 function () { 17 function () { 27 function get(string $first, int $second): array
|
H A D | bug71163.phpt | 5 spl_autoload_register(function ($name) { 6 eval ("class $name extends Exception { public static function foo() {}}"); 10 function test2() { 18 function test() {
|
H A D | name_collision_08.phpt | 7 function bar() {} 11 use function Foo\bar; 12 function bar() {} 16 Fatal error: Cannot redeclare function Bazzle\bar() (previously declared as local import) in %s on …
|
/php-src/Zend/tests/readonly_props/ |
H A D | variation.phpt | 9 public function init() { 13 public function r() { 17 public function w() { 22 public function rw() { 27 public function im() { 42 function r($test) { 46 function w($test) { 51 function rw($test) { 56 function im($test) { 61 function is($test) { [all …]
|
/php-src/Zend/tests/generators/ |
H A D | nested_calls_with_die.phpt | 6 function gen() { 11 function function_with_3_args() { 16 function function_with_4_args() { 20 function outerGen() {
|
/php-src/ext/session/tests/user_session_module/ |
H A D | session_set_save_handler_error4.phpt | 2 Test session_set_save_handler() function : error functionality 12 function callback() { return true; } 61 …ler(): Argument #2 ($close) must be a valid callback, function "echo" not found or invalid functio… 64 …dler(): Argument #3 ($read) must be a valid callback, function "echo" not found or invalid functio… 67 …ler(): Argument #4 ($write) must be a valid callback, function "echo" not found or invalid functio… 70 …r(): Argument #5 ($destroy) must be a valid callback, function "echo" not found or invalid functio… 73 …andler(): Argument #6 ($gc) must be a valid callback, function "echo" not found or invalid functio…
|
/php-src/tests/classes/ |
H A D | inheritance_008.phpt | 6 static private function foo() { } 7 private function bar() {} 10 private function foo() {} 11 static private function bar() {}
|
H A D | iterators_006.phpt | 12 function __construct() { 16 function rewind(): void { 21 function valid(): bool { 25 function key(): mixed { 29 function current(): mixed { 33 function next(): void { 42 public function getIterator(): Traversable {
|
H A D | abstract.phpt | 7 abstract function show(); 11 function show() { 12 echo "Call to function show()\n"; 14 function error() { 26 Call to function show()
|
H A D | abstract_static.phpt | 8 static function show(); 13 static function show() { 14 echo "Call to function show()\n"; 23 abstract static function func(); 32 Call to function show()
|
/php-src/Zend/tests/return_types/ |
H A D | 042.phpt | 6 public function __debugInfo(): array|null {} 10 public function __debugInfo(): null|array {} 14 public function __debugInfo(): ?array {} 18 public function __debugInfo(): array {}
|
/php-src/Zend/tests/function_arguments/ |
H A D | argument_count_correct_strict.phpt | 2 Call function with correct number of arguments with strict types 6 function foo() { } 9 function bar($foo, $bar) { } 12 function bat(int $foo, string $bar) { }
|
H A D | sensitive_parameter_nested_calls.phpt | 2 The SensitiveParameter attribute handles nested function calls correctly. 6 function test( 17 function wrapper( 39 ["function"]=> 59 ["function"]=> 81 ["function"]=> 101 ["function"]=>
|
/php-src/tests/lang/ |
H A D | bug22510.phpt | 11 function finalize() { 16 function &method1() { 21 function &method2() { 26 function method3() { 36 function run1() { 43 function run2() { 50 function run3() { 58 function ouch(&$bar) { 64 function ok1(&$bar) { 69 function ok2(&$bar) { [all …]
|
H A D | returnByReference.009.phpt | 2 Returning a references returned by another function 7 function &returnVarByRef () { 12 function &testReturnVarByRef() { 16 function returnVal () { 20 function &testReturnValByRef() {
|
/php-src/ext/standard/tests/array/ |
H A D | array_intersect_uassoc_variation10.phpt | 2 Test array_intersect_uassoc() function : usage variation - Passing class/object methods to callback 13 static function static_compare_func($a, $b) { 17 public function class_compare_func($a, $b) { 23 echo "\n-- Testing array_intersect_uassoc() function using class with static method as callback --\… 27 echo "\n-- Testing array_intersect_uassoc() function using class with regular method as callback --… 34 -- Testing array_intersect_uassoc() function using class with static method as callback -- 44 -- Testing array_intersect_uassoc() function using class with regular method as callback --
|
/php-src/ext/hash/tests/ |
H A D | hash_hmac_file_error.phpt | 2 Hash: hash_hmac_file() function : basic functionality 11 echo "\n-- Testing hash_hmac_file() function with invalid hash algorithm --\n"; 19 echo "\n-- Testing hash_hmac_file() function with non-cryptographic hash algorithm --\n"; 27 echo "\n-- Testing hash_hmac_file() function with bad path --\n"; 39 -- Testing hash_hmac_file() function with invalid hash algorithm -- 42 -- Testing hash_hmac_file() function with non-cryptographic hash algorithm -- 45 -- Testing hash_hmac_file() function with bad path --
|
/php-src/ext/spl/tests/ |
H A D | bug37457.phpt | 10 public function __construct(array $a) 16 public function current(): mixed 22 public function key(): mixed 28 public function next(): void 34 public function valid(): bool 40 public function rewind(): void 49 public function accept(): bool
|
H A D | bug42703.phpt | 7 public function rewind(): void { } 9 public function next(): void { } 11 public function valid(): bool { 15 public function current(): mixed 20 public function key(): mixed { return null; }
|
H A D | iterator_002.phpt | 8 function hasChildren(): bool 13 function getChildren(): RecursiceArrayIterator 21 function accept(): bool 26 function hasChildren(): bool 31 function getChildren(): RecursiceArrayIterator
|
H A D | spl_autoload_bug48541.phpt | 7 public function getClosure() { 8 return function($class) { 14 $a = function ($class) { 19 $b = function ($class) { 20 eval('class ' . $class . '{function __construct(){echo "foo\n";}}');
|
/php-src/ext/reflection/tests/ |
H A D | ReflectionClass_isInstantiable_basic.phpt | 9 function f1(); 13 function f1() {} 17 function f1() {} 18 abstract function f2(); 22 function f2() {}
|
Completed in 22 milliseconds
1...<<11121314151617181920>>...357