Home
last modified time | relevance | path

Searched refs:arr (Results 26 – 50 of 275) sorted by path

1234567891011

/PHP-7.4/Zend/tests/
H A Dbug50255.phpt6 $arr = array('foo' => 'bar');
9 var_dump(isset($arr->foo));
10 var_dump(isset($arr->bar));
11 var_dump(isset($arr['foo']));
12 var_dump(isset($arr['bar']));
14 var_dump(empty($arr->foo));
15 var_dump(empty($arr->bar));
16 var_dump(empty($arr['foo']));
17 var_dump(empty($arr['bar']));
H A Dbug60169.phpt6 $arr = array("test");
7 list($a,$b) = is_array($arr)? $arr : $arr;
8 list($c,$d) = is_array($arr)?: NULL;
H A Dbug60362.phpt5 $arr = array('exists' => 'foz');
7 if (isset($arr['exists']['non_existent'])) {
9 var_dump($arr['exists']['non_existent']);
13 if (isset($arr['exists'][1])) {
15 var_dump($arr['exists'][1]);
27 if (isset($arr['exists'][1][0])) {
29 var_dump($arr['exists'][1][0]);
41 if (empty($arr['exists'][1])) {
45 var_dump($arr['exists'][1]);
55 if (empty($arr['exists'][1][0])) {
[all …]
H A Dbug68215.phpt5 $arr = array(
42 foreach ($arr AS $key => $fruit)
44 $arr[$i] = $fruit;
48 test($arr[$i], $fruit);
51 unset($arr[$key]);
55 var_dump($arr);
H A Dbug69756.phpt5 $arr = range(1, 2);
6 foreach($arr as &$item ) {
7 var_dump($arr === array(1, 2));
H A Dbug70258.phpt15 public $arr;
17 $this->arr["no_pack"] = 1;
19 $this->arr[] = 1;
H A Dbug70262.phpt14 $obj->arr = $array; // make the refcount == 3;
21 …->arr // FETCH_OBJ_W will EXTRACT_ZVAL_PTR because getObj() result a refcount == 1 object (READY_T…
H A Dbug71067.phpt10 $arr = (object) [
13 $arr->children[] = 1;
14 return $arr;
H A Dbug71266.phpt7 $arr = ['foo' => $one, 'bar' => $two];
8 $obj = (object) $arr;
14 $arr = ['foo' => $one, 'bar' => $two];
15 $obj = (object) $arr;
17 var_dump(current($arr));
H A Dbug71539.phpt2 Bug #71539 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
H A Dbug71539_1.phpt2 Bug #71539.1 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
H A Dbug71539_2.phpt2 Bug #71539.2 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
H A Dbug71539_3.phpt2 Bug #71539.3 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
H A Dbug71539_4.phpt2 Bug #71539.4 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
H A Dbug71539_5.phpt2 Bug #71539.5 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
H A Dbug71539_6.phpt2 Bug #71539.5 (Memory error on $arr[$a] =& $arr[$b] if RHS rehashes)
H A Dbug71914.phpt24 function test($arr, &$dummy) {
25 bug($arr["str"]);
26 var_dump($arr["str"]);
30 $arr = returnArray();
34 test($arr, $arr["str"]);
H A Dbug71930.phpt2 Bug #71930 (_zval_dtor_func: Assertion `(arr)->gc.refcount <= 1' failed)
H A Dbug72543_1.phpt5 $arr = [];
6 $arr[0] = null;
7 $ref =& $arr[0];
9 $arr[0][0] = $arr[0];
10 var_dump($arr);
H A Dbug72543_2.phpt5 $arr = [];
6 $arr[0] = null;
7 $ref =& $arr[0];
9 $arr[0][$arr[0]] = null;
10 var_dump($arr);
H A Dbug72543_4.phpt5 $arr = [1];
6 $ref =& $arr[0];
8 var_dump($arr[0] + ($arr[0] = 2));
H A Dbug72543_5.phpt5 $arr = [1];
6 $ref =& $arr[0];
7 var_dump($arr[0] + ($arr[0] = 2));
H A Dbug73753.phpt25 $arr = array(1 => 'foo', 'b' => 'bar', 'baz');
26 var_dump(traverse($arr));
H A Dbug76800.phpt5 $arr = [1 => 1, 3 => 3]; // [1 => 1, 2 => 3] will print both keys
6 foreach($arr as $key => &$val) { // without & will print both keys
8 $arr[0] = 0; // without this line will print both keys
9 unset($arr[0]);
H A Dbug78151.phpt20 $arr = new Arr(['foo' => 'bar']);

Completed in 45 milliseconds

1234567891011