Home
last modified time | relevance | path

Searched refs:default (Results 1 – 25 of 881) sorted by relevance

12345678910>>...36

/php-src/Zend/tests/
H A Dbug69889.phpt7 var_dump($foo[0] ?? "default");
9 var_dump($foo[5] ?? "default");
10 var_dump(isset($foo[5]) ? $foo[5] : "default");
12 var_dump($foo["str"] ?? "default");
13 var_dump(isset($foo["str"]) ? $foo["str"] : "default");
18 string(7) "default"
19 string(7) "default"
20 string(7) "default"
21 string(7) "default"
H A D034.phpt2 Testing multiples 'default:' in switch
13 default:
16 default:
19 default:
26 Fatal error: Switch statements may only contain one default clause in %s on line 13
/php-src/tests/lang/
H A D020.phpt22 default:
40 default:
48 Inner default...
51 Inner default...
54 Inner default...
57 Inner default...
60 Inner default...
63 Inner default...
66 Inner default...
69 Inner default...
[all …]
/php-src/ext/standard/tests/array/
H A Dsizeof_basic2.phpt6 * in default, COUNT_NORMAL and COUNT_RECURSIVE modes.
19 echo "default mode: ";
30 echo "default mode: ";
41 echo "default mode: ";
52 echo "default mode: ";
66 default mode: int(4)
72 -- Testing sizeof() with string array in default, COUNT_NORMAL, COUNT_RECURSIVE modes --
73 default mode: int(3)
80 default mode: int(3)
86 -- Testing sizeof() with mixed array in default, COUNT_NORMAL, COUNT_RECURSIVE modes --
[all …]
H A Darray_rand_basic1.phpt2 Test array_rand() function : basic functionality - array with default keys
6 * Test array_rand() when array with default keys is passed to 'input' argument
9 echo "*** Testing array_rand() : array with default keys ***\n";
17 echo"\n-- with all default and optional arguments --\n";
20 // Calling array_rand() with default arguments
21 echo"\n-- with default argument --\n";
27 *** Testing array_rand() : array with default keys ***
29 -- with all default and optional arguments --
45 -- with default argument --
H A Darray_merge_recursive_variation1.phpt88 // with default argument
89 echo "\n-- With default argument --";
116 -- With default argument --array_merge_recursive(): Argument #1 must be of type array, int given
120 -- With default argument --array_merge_recursive(): Argument #1 must be of type array, int given
124 -- With default argument --array_merge_recursive(): Argument #1 must be of type array, int given
128 -- With default argument --array_merge_recursive(): Argument #1 must be of type array, int given
132 -- With default argument --array_merge_recursive(): Argument #1 must be of type array, float given
152 -- With default argument --array_merge_recursive(): Argument #1 must be of type array, null given
156 -- With default argument --array_merge_recursive(): Argument #1 must be of type array, null given
160 -- With default argument --array_merge_recursive(): Argument #1 must be of type array, true given
[all …]
H A Darray_merge_recursive_basic1.phpt2 Test array_merge_recursive() function : basic functionality - array with default keys
5 echo "*** Testing array_merge_recursive() : array with default keys ***\n";
16 // Calling array_merge_recursive() with default arguments
17 echo "-- With default argument --\n";
28 *** Testing array_merge_recursive() : array with default keys ***
32 -- With default argument --
/php-src/Zend/tests/match/
H A D003.phpt2 Match expression default case
10 default => 'default',
21 default
24 default
H A D046.phpt12 default => 15
14 default => 4
23 match ($c) { default => 'c' } => 300
32 match ($d) { default => 'd' },
33 match ($d) { default => 'e' } => 500
H A D038.phpt2 Test multiple default arms in match in different arms
7 default => 'foo',
10 default => 'qux',
15 Fatal error: Match expressions may only contain one default arm in %s on line 7
/php-src/ext/dom/tests/
H A DDOMElement_setAttributeNS_prefix_conflict.phpt7 echo "--- Non-default namespace test case ---\n";
26 --- Non-default namespace test case ---
28 <container xmlns:foo="http://php.net" xmlns:default="http://php.net/2" foo:bar="yes" default:bar="n…
30 <container xmlns:foo="http://php.net" xmlns:default="http://php.net/2" foo:bar="yes" default:bar="n…
33 <container xmlns="http://php.net" xmlns:default="http://php.net/2" bar="yes" default:bar="no1"/>
35 <container xmlns="http://php.net" xmlns:default="http://php.net/2" bar="yes" default:bar="no2"/>
H A DDOMDocument_importNode_attribute_prefix_conflict.phpt8 echo "--- Non-default namespace test case without a default namespace in the destination ---\n";
21 echo "--- Non-default namespace test case with a default namespace in the destination ---\n";
38 // We don't expect the namespace to be imported because default namespaces on the same element don'…
53 --- Non-default namespace test case without a default namespace in the destination ---
57 <container xmlns:foo="http://php.net/2" xmlns:default="http://php.net" default:bar="yes"/>
58 --- Non-default namespace test case with a default namespace in the destination ---
59 string(7) "default"
61 string(7) "default"
66 …r xmlns="http://php.net" xmlns:foo="http://php.net/2" xmlns:default="http://php.net" default:bar="…
H A DDOMDocument_loadXML_variation4.phpt24 <!ATTLIST title default CDATA "default title">
30default="default title">The Grapes of Wrath</title><author>John Steinbeck</author></book><book><ti…
H A DDOMDocument_load_variation4.phpt23default="default title">The Grapes of Wrath</title><author>John Steinbeck</author></book><book><ti…
/php-src/ext/filter/tests/
H A D051.phpt2 filter_var() and default values
7 $tmp = $default = 321;
8 var_dump(filter_var("123asd", FILTER_VALIDATE_INT, array("options"=>array("default"=>$default))));
H A Dbug42718.phpt2 Bug #42718 (unsafe_raw filter not applied when configured as default filter)
4 FILTER_UNSAFE_RAW not applied when configured as default filter, even with flags
8 filter.default=unsafe_raw
14 echo ini_get('filter.default') . "\n";
/php-src/ext/dom/tests/modern/spec/
H A Dserialize_default_and_prefixed_xmlns.phpt2 Serialize default and prefixed xmlns on elements
11 <a:child xmlns:a="urn:a" xmlns="urn:default">
12 <default/>
23 <a:child xmlns:a="urn:a" xmlns="urn:default">
24 <default/>
/php-src/Zend/tests/unset/
H A Dunset_cv11.phpt5 $x = array("default"=>"ok");
8 unset($cf['default']);
14 ["default"]=>
18 ["default"]=>
/php-src/ext/standard/tests/strings/
H A Dchunk_split_basic.phpt7 * arguments as well as with default arguments chunklen and ending
23 // Calling chunk_split() with default ending string
24 echo "-- Testing chunk_split() with default ending string --\n";
28 //Calling chunk_split() with default chunklen and ending string
29 echo "-- Testing chunk_split() with default chunklen and ending string --\n";
38 -- Testing chunk_split() with default ending string --
44 -- Testing chunk_split() with default chunklen and ending string --
H A Dchunk_split_variation13.phpt2 Test chunk_split() function : usage variations - default 'chunklen' with long string as 'str'argume…
6 * passing long string as 'str' and testing default value of chunklen which is 76
9 echo "*** Testing chunk_split() : default 'chunklen' with long string 'str' ***\n";
17 //loop through each element of values for 'str' and default value of 'chunklen'
26 *** Testing chunk_split() : default 'chunklen' with long string 'str' ***
/php-src/tests/output/
H A Dob_020.phpt25 [0] => default output handler
29 [0] => default output handler
30 [1] => default output handler
34 [0] => default output handler
/php-src/ext/dom/tests/createAttributeNS_prefix_conflicts/
H A DsetAttributeNS_without_prefix.phpt24 <container xmlns:default="http://php.net/ns1" default:hello=""/>
28 <container xmlns:default="http://php.net/ns1" xmlns:default1="http://php.net/ns2" default:hello="" …
32 <container xmlns:default="http://php.net/ns1" xmlns:default1="http://php.net/ns2" xmlns:default2="h…
36 …lns:default="http://php.net/ns1" xmlns:default1="http://php.net/ns2" xmlns:default2="http://php.ne…
/php-src/ext/opcache/tests/match/
H A D004.phpt25 default => 'default',
70 …0003, 2: 0004, "2": 0005, 3: 0006, "3": 0007, 4: 0008, "4": 0009, 5: 0010, "5": 0011, default: 0012
81 0012 RETURN string("default")
82 string(7) "default"
83 string(7) "default"
94 string(7) "default"
95 string(7) "default"
H A D003.phpt21 default => 'default'
58 …har) 1: 0002, 2: 0003, 3: 0003, 4: 0004, 5: 0005, 6: 0005, 7: 0006, 8: 0007, 9: 0007, default: 0008
65 0008 RETURN string("default")
66 string(7) "default"
76 string(7) "default"
/php-src/sapi/phpdbg/tests/
H A Dmatch_breakpoints_001.phpt2 Test match default breakpoint with variable assignment
15 >00010: default => 'bar', // breakpoint #1
24 default => 'bar', // breakpoint #0
29 default => 'bar', // breakpoint #1

Completed in 26 milliseconds

12345678910>>...36