Home
last modified time | relevance | path

Searched refs:list (Results 26 – 50 of 314) sorted by relevance

12345678910>>...13

/PHP-7.4/Zend/tests/
H A Dlist_010.phpt2 Do not allow mixing [] and list()
6 list([$a]) = [[1]];
11 Fatal error: Cannot mix [] and list() in %s on line %d
H A Dbug40899.phpt2 Bug #40899 (memory leak when nesting list())
5 list(list($a,$b),$c)=array(array('a','b'),'c');
H A Dbug73663.phpt2 Bug #73663 ("Invalid opcode 65/16/8" occurs with a variable created with list())
15 var_dump(list($val) = $array); // NG: Invalid opcode
17 change(list(&$val) = $array);
21 $func(list(&$val) = $array);
H A Dlist_keyed_conversions.phpt2 list() with non-integer-or-string keys
12 list(NULL => $NULL, 1.5 => $float, FALSE => $FALSE, TRUE => $TRUE) = $results;
17 list("0" => $zeroString, "1" => $oneString) = $results;
20 list(STDIN => $resource) = [];
H A Dforeach_list_004.phpt2 foreach with empty list
8 foreach($array as $key => list()) {
13 Fatal error: Cannot use empty list in %sforeach_list_004.php on line %d
H A Dlist_keyed_ArrayAccess.phpt2 list() with keys and ArrayAccess
10 list("good" => $good, "happy" => $happy) = $antonymObject;
21 list($foo => $fooStr, $bar => $barStr) = $stdClassCollection;
41 list(123 => $x) = $op;
43 list("123" => $x) = $op;
H A Dbug60169.phpt2 Bug #60169 (Conjunction of ternary and list crashes PHP)
7 list($a,$b) = is_array($arr)? $arr : $arr;
8 list($c,$d) = is_array($arr)?: NULL;
H A Dlist_002.phpt2 Testing full-reference on list()
11 list($a, list($b)) = array($a, array($b));
H A Dlist_001.phpt2 "Nested" list()
6 list($a, list($b)) = array(new stdclass, array(new stdclass));
H A Dbug71030.phpt2 Bug #71030: Self-assignment in list() may have inconsistent behavior
9 list($c, $b) = $a;
16 list($$_a, $b) = $a;
H A Dforeach_list_keyed.phpt2 foreach with list syntax, keyed
11 foreach ($points as list("x" => $x, "y" => $y)) {
22 foreach ($invertedPoints as list(0 => $row1, 1 => $row2)) {
H A Dlist_keyed_trailing_comma.phpt2 list() with keys and a trailing comma
11 list(
25 list(
H A Dlist_keyed_evaluation_order_nested.phpt2 list() with keys, evaluation order: nested
28 // list($a => $b, $c => list($d, $e), $f => list($g => $h, $i => $j)) = $k;
49 list(
51 (string)$c => list($store["D"], $store["E"]),
52 (string)$f => list(
H A Dlist_destructuring_to_special_variables.phpt2 list() can be used to destructure to string offsets, __set and ArrayAccess::offsetSet
24 list($str[0], $str[1]) = ['x', 'y'];
28 list($obj->foo, $obj->bar) = ['foo', 'bar'];
32 list($arr['foo'], $arr['bar']) = ['foo', 'bar'];
/PHP-7.4/tests/lang/
H A D031.phpt11 while(list(,$o) = each($arrayOuter)){
13 while(list(,$i) = each($arrayInner)){
22 while(list(,$o) = each($arrayOuter)){
23 while(list(,$i) = each($arrayInner)){
32 while(list(,$o) = each($arrayOuter)){
34 while(list(,$i) = each($arrayInner)){
43 while(list(,$o) = each($arrayOuter)){
45 while(list(,$i) = each($placeholder)){
/PHP-7.4/ext/spl/tests/
H A Dbug70853.phpt6 $list = new SplFixedArray(10);
9 $list[$ndx] = 123; // This throws an exception;
10 $list[$ndx2] = 123; // as does this, to.
H A DSplFileObject_fputcsv.phpt8 $list = array (
31 foreach ($list as $v) {
41 echo '$list = ';var_export($res);echo ";\n";
51 echo '$list = ';var_export($res);echo ";\n";
62 $list = array (
84 $list = array (
H A DRecursiveDirectoryIterator_getSubPath_basic.phpt17 $list = [];
19 $list[] = $it->getSubPath();
22 asort($list);
23 foreach ($list as $item) {
/PHP-7.4/ext/standard/tests/file/
H A Dfputcsv.phpt6 $list = array (
33 foreach ($list as $v) {
43 echo '$list = ';var_export($res);echo ";\n";
53 echo '$list = ';var_export($res);echo ";\n";
61 $list = array (
83 $list = array (
H A Dfputcsv_variation15.phpt8 $list = array (
35 foreach ($list as $v) {
45 echo '$list = ';var_export($res);echo ";\n";
55 echo '$list = ';var_export($res);echo ";\n";
63 $list = array (
85 $list = array (
/PHP-7.4/Zend/tests/generators/
H A Dfibonacci.phpt2 Creating an infinite fibonacci list using a generator
7 list($a, $b) = [1, 1];
10 list($a, $b) = [$b, $a + $b];
/PHP-7.4/Zend/
H A Dzend_ast.c252 list->kind = kind; in zend_ast_create_list_0()
253 list->attr = 0; in zend_ast_create_list_0()
267 list->kind = kind; in zend_ast_create_list_1()
268 list->attr = 0; in zend_ast_create_list_1()
291 list->kind = kind; in zend_ast_create_list_2()
292 list->attr = 0; in zend_ast_create_list_2()
369 list->kind = kind; in zend_ast_create_list()
370 list->attr = 0; in zend_ast_create_list()
401 if (list->children >= 4 && is_power_of_two(list->children)) { in zend_ast_list_add()
402 list = zend_ast_realloc(list, in zend_ast_list_add()
[all …]
H A Dzend_multibyte.c41 …_detector(const unsigned char *string, size_t length, const zend_encoding **list, size_t list_size) in dummy_encoding_detector() argument
148 …_detector(const unsigned char *string, size_t length, const zend_encoding **list, size_t list_size) in zend_multibyte_encoding_detector() argument
150 return multibyte_functions.encoding_detector(string, length, list, list_size); in zend_multibyte_encoding_detector()
190 const zend_encoding **list = 0; in zend_multibyte_set_script_encoding_by_string() local
198 if (FAILURE == zend_multibyte_parse_encoding_list(new_value, new_value_length, &list, &size, 1)) { in zend_multibyte_set_script_encoding_by_string()
203 pefree((void*)list, 1); in zend_multibyte_set_script_encoding_by_string()
207 if (FAILURE == zend_multibyte_set_script_encoding(list, size)) { in zend_multibyte_set_script_encoding_by_string()
/PHP-7.4/Zend/tests/list/
H A Dlist_reference_001.phpt2 "Reference Unpacking - General" list()
6 list(&$a, list(&$b)) = $arr;
11 list($a, &$b) = $arr;
/PHP-7.4/Zend/tests/grammar/
H A Dsemi_reserved_006.phpt9 private function list(){ echo __METHOD__, PHP_EOL; }
14 static $list = ['a' => ['b' => ['c']]];
33 TraitA::list as public foreach;
53 var_dump(Foo::$list['a']);
63 TraitA::list

Completed in 43 milliseconds

12345678910>>...13