/PHP-7.4/Zend/tests/list/ |
H A D | list_reference_009.phpt | 5 $ary = [[0, 1]]; 8 ($ary["foo"] = 1) => &$b 9 ]] = $ary; 11 var_dump($ary, $a, $b); 12 unset($ary, $a, $b); 14 $ary = [[0, 1]]; 17 ($ary["foo"] = 1) => &$b 18 ] = $ary[0]; 19 var_dump($ary, $a, $b);
|
/PHP-7.4/ext/reflection/tests/ |
H A D | ReflectionReference.phpt | 6 $ary = [0, 1, 2, 3]; 7 $ref1 =& $ary[1]; 9 $ref2 =& $ary[2]; 10 $ref3 =& $ary[3]; 13 $r0 = ReflectionReference::fromArrayElement($ary, 0); 15 $r1 = ReflectionReference::fromArrayElement($ary, 1); 17 $r2 = ReflectionReference::fromArrayElement($ary, 2); 19 $r3 = ReflectionReference::fromArrayElement($ary, 3); 28 $ary2 = [&$ary[2], &$ref3]; 38 $r2 = ReflectionReference::fromArrayElement($ary, 2); [all …]
|
H A D | ReflectionReference_errors.phpt | 25 $ary = [0, 1, 2]; 26 ReflectionReference::fromArrayElement($ary, 3); 32 $ary = [&$ary]; 33 $ref = ReflectionReference::fromArrayElement($ary, 0);
|
/PHP-7.4/Zend/tests/ |
H A D | bug63734.phpt | 9 public $ary; 12 $this->ary[] = 42; 15 global $ary; 16 $ary[] = $this->ary[0]; 24 var_dump($ary);
|
H A D | array_add_indirect.phpt | 7 $ary = ['y' => 1]; 8 $ary += $GLOBALS; 9 var_dump($ary['x']); 11 var_dump($ary['x']);
|
H A D | bug79793.phpt | 13 $ary = []; 14 $ary[$key]++; 15 var_dump($ary); 16 $ary[$key] += 1; 17 var_dump($ary);
|
H A D | assign_coalesce_001.phpt | 35 $ary = []; 36 $ary["foo"] ??= 123; 37 $ary[$foo] ??= $bar; 38 $ary[$bar] ??= $foo; 39 var_dump($ary); 41 $ary = []; 42 $ary[id($foo)] ??= 123; 43 $ary[id($foo)] ??= $bar; 44 $ary[id($bar)] ??= $foo; 45 var_dump($ary);
|
H A D | assign_coalesce_002.phpt | 20 $ary = []; 22 $ary[id($foo)] ??= do_throw("ex1"); 26 var_dump($ary); 46 $ary = new AA; 48 $ary[new Dtor][id($foo)] ??= $bar; 65 $ary = ["foo" => new AA2]; 67 $ary[id($foo)][new Dtor] ??= $bar;
|
H A D | bug78589.phpt | 12 $ary = [&$ary, $test]; 13 unset($ary, $test);
|
H A D | assign_coalesce_003.phpt | 31 $ary = new AA(["foo" => new AA, "null" => null]); 34 $ary["foo"] ??= "bar"; 37 $ary["bar"] ??= "foo"; 40 $ary["null"] ??= "baz"; 43 $ary["foo"]["bar"] ??= "abc"; 46 $ary["foo"]["bar"] ??= "def";
|
H A D | bug76846.phpt | 19 $ary = []; 21 $ary[] = new stdClass;
|
/PHP-7.4/ext/opcache/tests/ |
H A D | bug78230.phpt | 11 $ary = [1, 2]; 12 $ary[] = 3; 13 test($ary); 14 $ary[] = 4; 15 var_dump($ary);
|
H A D | assign_obj_op_of_fetch_dim.phpt | 2 Type inference for $ary[$idx]->prop += 7 $ary = []; 8 $ary[0]->y += 2; 9 var_dump(is_object($ary[0]));
|
/PHP-7.4/ext/standard/tests/array/ |
H A D | bug22463.phpt | 6 function a($ary) { 7 return (is_array($ary) ? array_reduce($ary, 'cb', 0) : 1); 14 $ary = array( 26 var_dump(a($ary));
|
/PHP-7.4/Zend/tests/generators/ |
H A D | gc_running_generator.phpt | 9 $ary = [new stdClass, new stdClass, new stdClass]; 10 $ary[0]->foo = $ary; 11 foreach ($ary as &$v) { }
|
/PHP-7.4/ext/soap/tests/interop/Round2/GroupB/ |
H A D | round2_groupB.inc | 23 function echo2DStringArray($ary) 25 return $ary; 28 function echoNestedArray($ary) 30 return $ary;
|
/PHP-7.4/Zend/tests/type_declarations/ |
H A D | typed_properties_099.phpt | 7 public array $ary = []; 11 foreach ($test->ary as &$value) {} 17 ["ary"]=>
|
H A D | typed_properties_106.phpt | 16 $ary = [1]; 17 $ref = $ary;
|
/PHP-7.4/ext/standard/tests/general_functions/ |
H A D | get_cfg_var_array.phpt | 4 ary[a] = 1 5 ary[b] = 2 11 var_dump(get_cfg_var('ary'));
|
/PHP-7.4/ext/spl/tests/ |
H A D | recursive_tree_iterator_004.phpt | 8 $ary = array( 27 $it = new RecursiveTreeIterator(new RecursiveArrayIterator($ary));
|
H A D | recursive_tree_iterator_007.phpt | 8 $ary = array(new stdClass); 20 $it = new RecursiveArrayIteratorAggregated($ary);
|
H A D | recursive_tree_iterator_008.phpt | 8 $ary = array( 13 $it = new RecursiveArrayIterator($ary);
|
H A D | recursive_tree_iterator_001.phpt | 8 $ary = array( 27 $it = new RecursiveArrayIterator($ary);
|
H A D | recursive_tree_iterator_005.phpt | 8 $ary = array( 28 $it = new RecursiveTreeIterator(new RecursiveArrayIterator($ary), 0);
|
/PHP-7.4/ext/soap/tests/soap12/ |
H A D | soap12-test.inc | 81 function echo2DStringArray($ary) { 82 return $ary; 85 function echoNestedArray($ary) { 86 return $ary;
|