/PHP-7.4/Zend/tests/ |
H A D | list_010.phpt | 2 Do not allow mixing [] and list() 6 list([$a]) = [[1]]; 11 Fatal error: Cannot mix [] and list() in %s on line %d
|
H A D | bug40899.phpt | 2 Bug #40899 (memory leak when nesting list()) 5 list(list($a,$b),$c)=array(array('a','b'),'c');
|
H A D | bug73663.phpt | 2 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 D | list_keyed_conversions.phpt | 2 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 D | foreach_list_004.phpt | 2 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 D | list_keyed_ArrayAccess.phpt | 2 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 D | bug60169.phpt | 2 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 D | list_002.phpt | 2 Testing full-reference on list() 11 list($a, list($b)) = array($a, array($b));
|
H A D | list_001.phpt | 2 "Nested" list() 6 list($a, list($b)) = array(new stdclass, array(new stdclass));
|
H A D | bug71030.phpt | 2 Bug #71030: Self-assignment in list() may have inconsistent behavior 9 list($c, $b) = $a; 16 list($$_a, $b) = $a;
|
H A D | foreach_list_keyed.phpt | 2 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 D | list_keyed_trailing_comma.phpt | 2 list() with keys and a trailing comma 11 list( 25 list(
|
H A D | list_keyed_evaluation_order_nested.phpt | 2 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 D | list_destructuring_to_special_variables.phpt | 2 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 D | 031.phpt | 11 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 D | bug70853.phpt | 6 $list = new SplFixedArray(10); 9 $list[$ndx] = 123; // This throws an exception; 10 $list[$ndx2] = 123; // as does this, to.
|
H A D | SplFileObject_fputcsv.phpt | 8 $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 D | RecursiveDirectoryIterator_getSubPath_basic.phpt | 17 $list = []; 19 $list[] = $it->getSubPath(); 22 asort($list); 23 foreach ($list as $item) {
|
/PHP-7.4/ext/standard/tests/file/ |
H A D | fputcsv.phpt | 6 $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 D | fputcsv_variation15.phpt | 8 $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 D | fibonacci.phpt | 2 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 D | zend_ast.c | 252 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 D | zend_multibyte.c | 41 …_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 D | list_reference_001.phpt | 2 "Reference Unpacking - General" list() 6 list(&$a, list(&$b)) = $arr; 11 list($a, &$b) = $arr;
|
/PHP-7.4/Zend/tests/grammar/ |
H A D | semi_reserved_006.phpt | 9 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
|