Home
last modified time | relevance | path

Searched refs:function (Results 351 – 375 of 8923) sorted by relevance

1...<<11121314151617181920>>...357

/php-src/Zend/tests/
H A Dbug62991.phpt6 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 Dmagic_methods_001.phpt7 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 Dbug24635.phpt7 function __construct() { $this->page = new PageClass(); }
10 function Display() {
16 function __construct($comment) {
19 function __destruct() {
24 function out($code) { return; }
H A Dbug79657.phpt6 function throwException(): iterable
11 function loop(): iterable
14 function () {
17 function () {
27 function get(string $first, int $second): array
H A Dbug71163.phpt5 spl_autoload_register(function ($name) {
6 eval ("class $name extends Exception { public static function foo() {}}");
10 function test2() {
18 function test() {
H A Dname_collision_08.phpt7 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 Dvariation.phpt9 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 Dnested_calls_with_die.phpt6 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 Dsession_set_save_handler_error4.phpt2 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 Dinheritance_008.phpt6 static private function foo() { }
7 private function bar() {}
10 private function foo() {}
11 static private function bar() {}
H A Diterators_006.phpt12 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 Dabstract.phpt7 abstract function show();
11 function show() {
12 echo "Call to function show()\n";
14 function error() {
26 Call to function show()
H A Dabstract_static.phpt8 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 D042.phpt6 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 Dargument_count_correct_strict.phpt2 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 Dsensitive_parameter_nested_calls.phpt2 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 Dbug22510.phpt11 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 DreturnByReference.009.phpt2 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 Darray_intersect_uassoc_variation10.phpt2 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 Dhash_hmac_file_error.phpt2 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 Dbug37457.phpt10 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 Dbug42703.phpt7 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 Diterator_002.phpt8 function hasChildren(): bool
13 function getChildren(): RecursiceArrayIterator
21 function accept(): bool
26 function hasChildren(): bool
31 function getChildren(): RecursiceArrayIterator
H A Dspl_autoload_bug48541.phpt7 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 DReflectionClass_isInstantiable_basic.phpt9 function f1();
13 function f1() {}
17 function f1() {}
18 abstract function f2();
22 function f2() {}

Completed in 22 milliseconds

1...<<11121314151617181920>>...357