Home
last modified time | relevance | path

Searched refs:optional (Results 1 – 25 of 121) sorted by relevance

12345

/php-src/ext/date/tests/
H A Dgmmktime_variation7.phpt2 Test gmmktime() function : usage variation - Checking with few optional arguments.
14 echo "\n-- Testing gmmktime() function with one optional argument --\n";
17 echo "\n-- Testing gmmktime() function with two optional argument --\n";
20 echo "\n-- Testing gmmktime() function with three optional argument --\n";
23 echo "\n-- Testing gmmktime() function with four optional argument --\n";
26 echo "\n-- Testing gmmktime() function with five optional argument --\n";
33 -- Testing gmmktime() function with one optional argument --
36 -- Testing gmmktime() function with two optional argument --
39 -- Testing gmmktime() function with three optional argument --
42 -- Testing gmmktime() function with four optional argument --
[all …]
/php-src/ext/reflection/tests/
H A Dgh9447.phpt32 Parameter #0 [ <optional> $a = \App\Bar::BAZ ]
33 Parameter #1 [ <optional> $b = new \App\Bar() ]
34 Parameter #2 [ <optional> $c = new parent() ]
35 Parameter #3 [ <optional> $d = new self() ]
36 Parameter #4 [ <optional> $e = new \App\Bar() ]
37 Parameter #5 [ <optional> $f = new \SomewhereElse\Qux() ]
38 Parameter #6 [ <optional> $g = new \App\Qux() ]
39 Parameter #7 [ <optional> $i = new \Qux() ]
H A Dbug60357.phpt18 Parameter #0 [ <optional> array $x = ['a', 'b'] ]
19 Parameter #1 [ <optional> array $y = ['x' => 'y'] ]
20 Parameter #2 [ <optional> array $z = [0 => 0, 2 => -2] ]
21 Parameter #3 [ <optional> array $a = [[], [1], [2, 3]] ]
H A DReflectionClass_export_basic1.phpt54 Parameter #2 [ <optional> ?C $c = NULL ]
55 Parameter #3 [ <optional> $d = K ]
56 Parameter #4 [ <optional> $e = '15 chars long -' ]
57 Parameter #5 [ <optional> $f = NULL ]
58 Parameter #6 [ <optional> $g = false ]
59 Parameter #7 [ <optional> ?array $h = NULL ]
H A Dbug33389.phpt45 Parameter #0 [ <optional> $arg = foobar ]
53 Parameter #0 [ <optional> $arg = NULL ]
61 Parameter #0 [ <optional> $arg = false ]
69 Parameter #0 [ <optional> $arg = 'foo' ]
77 Parameter #0 [ <optional> $arg = 1 ]
H A DReflectionParameter_003.phpt29 echo "this parameter is optional\n";
31 echo "this parameter is not optional\n";
66 this parameter is not optional
73 this parameter is optional
80 this parameter is optional
87 this parameter is optional
H A Dbug45765.phpt54 Parameter #0 [ <optional> $a = self::BAR ]
62 Parameter #0 [ <optional> $a = parent::BAR ]
70 Parameter #0 [ <optional> $a = foo::BAR ]
78 Parameter #0 [ <optional> $a = foo2::BAR ]
H A DReflectionMethod_defaultArg.phpt28 Parameter #0 [ <optional> $a = 'F' ]
35 Parameter #0 [ <optional> $a = self::class ]
42 Parameter #0 [ <optional> $a = self::class ]
H A DReflectionMethod_tentative_return_type.phpt37 Parameter #0 [ <optional> int $timezoneGroup = DateTimeZone::ALL ]
38 Parameter #1 [ <optional> ?string $countryCode = null ]
52 Parameter #0 [ <optional> int $timezoneGroup = DateTimeZone::ALL ]
53 Parameter #1 [ <optional> ?string $countryCode = NULL ]
/php-src/sapi/cli/tests/
H A D006.phpt74 Parameter #3 [ <optional> int $flags = 0 ]
75 Parameter #4 [ <optional> int $offset = 0 ]
85 Parameter #3 [ <optional> int $flags = 0 ]
86 Parameter #4 [ <optional> int $offset = 0 ]
97 Parameter #4 [ <optional> &$count = null ]
108 Parameter #4 [ <optional> &$count = null ]
119 Parameter #4 [ <optional> &$count = null ]
120 Parameter #5 [ <optional> int $flags = 0 ]
130 Parameter #3 [ <optional> &$count = null ]
131 Parameter #4 [ <optional> int $flags = 0 ]
[all …]
/php-src/ext/standard/tests/strings/
H A Dbug61116.phpt13 Parameter #1 [ <optional> int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 ]
14 Parameter #2 [ <optional> ?string $encoding = null ]
15 Parameter #3 [ <optional> bool $double_encode = true ]
23 Parameter #0 [ <optional> int $table = HTML_SPECIALCHARS ]
24 Parameter #1 [ <optional> int $flags = ENT_QUOTES | ENT_SUBSTITUTE | ENT_HTML401 ]
25 Parameter #2 [ <optional> string $encoding = "UTF-8" ]
H A Dsscanf_basic1.phpt14 echo "\n-- Try sccanf() WITHOUT optional args --\n";
19 echo "\n-- Try sccanf() WITH optional args --\n";
28 -- Try sccanf() WITHOUT optional args --
33 -- Try sccanf() WITH optional args --
H A Dsscanf_basic2.phpt14 echo "\n-- Try sccanf() WITHOUT optional args --\n";
19 echo "\n-- Try sccanf() WITH optional args --\n";
28 -- Try sccanf() WITHOUT optional args --
33 -- Try sccanf() WITH optional args --
H A Dsscanf_basic3.phpt11 echo "\n-- Try sccanf() WITHOUT optional args --\n";
16 echo "\n-- Try sccanf() WITH optional args --\n";
25 -- Try sccanf() WITHOUT optional args --
31 -- Try sccanf() WITH optional args --
H A Dsscanf_basic4.phpt11 echo "\n-- Try sccanf() WITHOUT optional args --\n";
16 echo "\n-- Try sccanf() WITH optional args --\n";
25 -- Try sccanf() WITHOUT optional args --
31 -- Try sccanf() WITH optional args --
H A Dsscanf_basic7.phpt11 echo "\n-- Try sccanf() WITHOUT optional args --\n";
16 echo "\n-- Try sccanf() WITH optional args --\n";
25 -- Try sccanf() WITHOUT optional args --
33 -- Try sccanf() WITH optional args --
H A Dsscanf_basic6.phpt17 echo "\n-- Try sccanf() WITHOUT optional args --\n";
22 echo "\n-- Try sccanf() WITH optional args --\n";
31 -- Try sccanf() WITHOUT optional args --
39 -- Try sccanf() WITH optional args --
H A Dsscanf_basic5.phpt12 echo "\n-- Try sccanf() WITHOUT optional args --\n";
19 echo "\n-- Try sccanf() WITH optional args --\n";
31 -- Try sccanf() WITHOUT optional args --
41 -- Try sccanf() WITH optional args --
H A Dsscanf_basic8.phpt12 echo "\n-- Try sccanf() WITHOUT optional args --\n";
19 echo "\n-- Try sccanf() WITH optional args --\n";
30 -- Try sccanf() WITHOUT optional args --
44 -- Try sccanf() WITH optional args --
/php-src/ext/intl/tests/locale/
H A Dbug74993.phpt26 Parameter #1 [ <optional> ?string $displayLocale = null ]
34 Parameter #1 [ <optional> ?string $displayLocale = null ]
42 Parameter #1 [ <optional> ?string $displayLocale = null ]
50 Parameter #1 [ <optional> ?string $displayLocale = null ]
58 Parameter #1 [ <optional> ?string $displayLocale = null ]
67 Parameter #2 [ <optional> bool $canonicalize = false ]
76 Parameter #2 [ <optional> bool $canonicalize = false ]
77 Parameter #3 [ <optional> ?string $defaultLocale = null ]
/php-src/scripts/dev/
H A Dcheck_parameters.php123 function check_param($db, $idx, $exp, $optional, $allow_uninit = false) argument
141 if (!$optional && $db[$idx][2]) {
144 if (!$allow_uninit && $optional && !$db[$idx][2]) {
204 $optional = $varargs = false;
215 if ($optional) {
218 $optional = true;
235 check_param($params, ++$j, 'bool*', $optional);
245 check_param($params, ++$j, 'zval**', $optional);
246 check_param($params, ++$j, 'int*', $optional);
255 if ($optional && !$params[$j-1][2] && !$params[$j][2]
[all …]
/php-src/ext/reflection/tests/internal_parameter_default_value/
H A DReflectionParameter_toString_Internal.phpt24 Parameter #2 [ <optional> int $second = 0 ]
25 Parameter #3 [ <optional> int $microsecond = 0 ]
27 Parameter #0 [ <optional> int $timezoneGroup = DateTimeZone::ALL ]
28 Parameter #1 [ <optional> ?string $countryCode = null ]
/php-src/ext/spl/tests/
H A Dbug71412.phpt11 Parameter #0 [ <optional> object|array $array = [] ]
12 Parameter #1 [ <optional> int $flags = 0 ]
/php-src/ext/standard/tests/array/
H A Darray_rand_basic1.phpt16 // Calling array_rand() with optional argument
17 echo"\n-- with all default and optional arguments --\n";
29 -- with all default and optional arguments --
/php-src/ext/dom/tests/modern/css_selectors/
H A Dpseudo_classes_optional_required.phpt2 CSS Selectors - Pseudo classes: optional/required
24 test_helper($dom, ':optional');
32 --- Selector: :optional ---

Completed in 34 milliseconds

12345