Home
last modified time | relevance | path

Searched refs:list (Results 1 – 25 of 346) sorted by relevance

12345678910>>...14

/PHP-8.1/ext/dom/tests/
H A Dbug80332_2.phpt20 …echo "list[$key_formatted] id attribute: ", $list[$key] ? $list[$key]->getAttribute('id') : '/', "…
23 test($list, 0);
24 test($list, false);
25 test($list, true);
26 test($list, null);
27 test($list, '0');
28 test($list, '0.5');
29 test($list, '1');
31 test($list, 'attr2');
32 test($list, 'hi');
[all …]
H A Dbug67474.phpt11 $list = $doc->getElementsByTagNameNS('', 'a');
12 var_dump($list->length);
13 $list = $doc->getElementsByTagNameNS(null, 'a');
14 var_dump($list->length);
17 $list = $elem->getElementsByTagNameNS('', 'a');
18 var_dump($list->length);
19 $list = $elem->getElementsByTagNameNS(null, 'a');
20 var_dump($list->length);
/PHP-8.1/ext/pcre/pcre2lib/
H A Dpcre2_script_run.c207 const uint8_t *list; in PRIV() local
208 for (list = require_list; *list != 0; list++) in PRIV()
285 for (; *list != 0; list++) in PRIV()
287 switch (*list) in PRIV()
314 for (; *list != 0; list++) in PRIV()
316 if (*list == ucp_Hiragana || *list == ucp_Katakana) break; in PRIV()
318 if (*list == 0) return FALSE; in PRIV()
322 for (; *list != 0; list++) in PRIV()
326 if (*list == 0) return FALSE; in PRIV()
330 for (; *list != 0; list++) in PRIV()
[all …]
H A Dpcre2_auto_possess.c309 uint32_t *list) in get_chr_property_list() argument
324 list[0] = c; in get_chr_property_list()
325 list[1] = FALSE; in get_chr_property_list()
358 list[0] = *code; in get_chr_property_list()
362 c = list[0]; in get_chr_property_list()
390 list[2] = chr; in get_chr_property_list()
398 list[2] = chr; in get_chr_property_list()
473 list[1] = TRUE; in get_chr_property_list()
523 uint32_t list[8]; in compare_opcodes() local
705 list_ptr = list; in compare_opcodes()
[all …]
/PHP-8.1/ext/phar/tests/zip/
H A Dbug48791.phpt12list-style-name="L1"/><style:style style:name="T1" style:family="text"><style:text-properties styl…
/PHP-8.1/ext/spl/tests/
H A Dbug67538.phpt5 $list = new SplDoublyLinkedList();
6 $list->push('a');
7 $list->push('b');
9 $list->rewind();
10 $list->offsetUnset(0);
11 $list->push('b');
12 $list->offsetUnset(0);
13 $list->next();
H A DSplDoublyLinkedList_lifoMode.phpt7 $list = new SplDoublyLinkedList();
9 $list->push('o');
10 $list->push('o');
11 $list->push('f');
13 $list->setIteratorMode(SplDoublyLinkedList::IT_MODE_LIFO);
15 $list->rewind();
17 while ($tmp = $list->current()) {
19 $list->next();
H A DSplDoublyLinkedList_consistent_iterator_mode.phpt6 $list = new SplDoublyLinkedList();
7 $list->push(1);
8 $list->push(2);
9 $list->push(3);
16 $list->setIteratorMode(SplDoublyLinkedList::IT_MODE_FIFO);
17 foreach ($list as $item) {
18 $list->setIteratorMode(SplDoublyLinkedList::IT_MODE_LIFO);
24 $list->setIteratorMode(SplDoublyLinkedList::IT_MODE_LIFO);
25 foreach ($list as $item) {
26 $list->setIteratorMode(SplDoublyLinkedList::IT_MODE_FIFO);
H A DSplDoublylinkedlist_offsetunset_first002.phpt7 $list = new SplDoublyLinkedList();
8 $list->push('oh');
9 $list->push('hai');
10 $list->push('thar');
11 echo $list->bottom() . "\n";
12 $list->offsetUnset(0);
13 echo $list->bottom() . "\n";
H A DSplDoublylinkedlist_offsetunset_first.phpt7 $list = new SplDoublyLinkedList();
8 $list->push('oh');
9 $list->push('hai');
10 $list->push('thar');
11 $list->offsetUnset(0);
12 var_dump($list);
H A DSplDoublylinkedlist_offsetunset_last.phpt7 $list = new SplDoublyLinkedList();
8 $list->push('oh');
9 $list->push('hai');
10 $list->push('thar');
11 $list->offsetUnset(2);
12 var_dump($list);
H A DSplDoublyLinkedList_offsetExists_success.phpt7 $list = new SplDoublyLinkedList();
9 // Push two values onto the list
10 $list->push('abc');
11 $list->push('def');
14 if($list->offsetExists(0) === true) {
19 if($list->offsetExists(1) === true) {
24 if($list->offsetExists(2) === false) {
H A DSplDoublyLinkedList_getIteratorMode.phpt7 $list = new SplDoublyLinkedList();
8 $list->setIteratorMode(SplDoublyLinkedList::IT_MODE_FIFO | SplDoublyLinkedList::IT_MODE_KEEP);
9 echo $list->getIteratorMode(), "\n";
10 $list->setIteratorMode(SplDoublyLinkedList::IT_MODE_LIFO);
11 echo $list->getIteratorMode(), "\n";
H A Dbug67582.phpt13 $list = new MyObjectStorage();
14 $list->attach(new TestObject());
16 foreach($list as $x) var_dump($list->offsetExists($x));
18 $list2 = clone $list;
/PHP-8.1/Zend/tests/
H A Dlist_self_assign.phpt2 Test variable occurring on both LHS and RHS of list()
7 list($a, $b, $c) = $a;
11 list($a, $b, $c) = $b;
15 list($a, $b, $c) = $c;
19 list(list($a, $b), $c) = $a;
23 list(list($a, $b), $c) = $b;
27 list($a, list($b, $c)) = $b;
31 list($a, list($b, $c)) = $c;
H A Dlist_mixed_nested_keyed_unkeyed.phpt2 list() with nested unkeyed and keyed list()
11 list(list("x" => $x1, "y" => $y1), list("x" => $x2, "y" => $y2)) = $points;
21 list("x" => list($x1, $x2), "y" => list($y1, $y2)) = $invertedPoints;
H A Dforeach_list_001.phpt2 foreach with list syntax
6 foreach(array(array(1,2), array(3,4)) as list($a, $b)) {
15 foreach ($array as list($a, $b)) {
25 foreach ($multi as list(list($a, $b), list($c, $d))) {
29 foreach ($multi as $key => list(list($a, $b), list($c, $d))) {
H A Dlist_003.phpt2 list() with non-array
6 list($a) = NULL;
8 list($b) = 1;
10 list($c) = 1.;
12 list($d) = 'foo';
14 list($e) = print '';
H A Dlist_keyed_evaluation_order_2.phpt2 list() with keys, evaluation order #2
8 list($a, $b) = ['a', 'b'];
12 list(0 => $a, 1 => $b) = ['a', 'b'];
16 list(1 => $b, 0 => $a) = ['a', 'b'];
21 list($arr[], $arr[]) = ['a', 'b'];
26 list(0 => $arr[], 1 => $arr[]) = ['a', 'b'];
31 list(1 => $arr[], 0 => $arr[]) = ['b', 'a'];
36 list(list(1 => $arr[], 0 => $arr[])) = [['b', 'a']];
41 list('key1' => $arr[], 'key2' => $arr[]) = ['key2' => 'b', 'key1' => 'a'];
47 list($a => $a) = ['foo', 'bar'];
[all …]
H A Dforeach_list_003.phpt2 foreach with list key
8 foreach($array as list($key) => list(list(), $a)) {
13 Fatal error: Cannot use list as key element in %sforeach_list_003.php on line %d
H A Dlist_006.phpt2 Testing nested list() with empty array
6 list($a, list($b, list(list($d)))) = array();
H A Dlist_keyed.phpt2 list() with keys
11 list("good" => $good_antonym, "happy" => $happy_antonym) = $antonyms;
22 list(1 => $two_1, 2 => $two_2, 3 => $two_3) = $powersOfTwo;
32 list(7 => $seven, "elePHPant" => $elePHPant) = $contrivedMixedKeyTypesExample;
43 list(
44 "antonyms" => list("good" => $good_antonym, "happy" => $happy_antonym),
45 "powersOfTwo" => list(1 => $two_1, 2 => $two_2, 3 => $two_3),
46 "contrivedMixedKeyTypesExample" => list(7 => $seven, "elePHPant" => $elePHPant)
H A Dlist_005.phpt2 Testing list() with several variables
8 list($a, $b, $c) = $str;
16 list($a, $b, $c) = $int;
24 list($a, $b, $c) = $obj;
32 list($a, $b, $c) = $arr;
/PHP-8.1/ext/spl/
H A Dspl_functions.c27 void spl_add_class_name(zval *list, zend_class_entry *pce, int allow, int ce_flags) in spl_add_class_name() argument
32 if ((tmp = zend_hash_find(Z_ARRVAL_P(list), pce->name)) == NULL) { in spl_add_class_name()
35 zend_hash_add(Z_ARRVAL_P(list), pce->name, &t); in spl_add_class_name()
42 void spl_add_interfaces(zval *list, zend_class_entry * pce, int allow, int ce_flags) in spl_add_interfaces() argument
49 spl_add_class_name(list, pce->interfaces[num_interfaces], allow, ce_flags); in spl_add_interfaces()
56 void spl_add_traits(zval *list, zend_class_entry * pce, int allow, int ce_flags) in spl_add_traits() argument
65 spl_add_class_name(list, trait, allow, ce_flags); in spl_add_traits()
72 int spl_add_classes(zend_class_entry *pce, zval *list, int sub, int allow, int ce_flags) in spl_add_classes() argument
77 spl_add_class_name(list, pce, allow, ce_flags); in spl_add_classes()
79 spl_add_interfaces(list, pce, allow, ce_flags); in spl_add_classes()
[all …]
/PHP-8.1/tests/lang/
H A Dengine_assignExecutionOrder_002.phpt8 list($a,,$b) = $f;
33 list($e[$f++],$e[$f++]) = $g[2];
45 // a list of lists
46 list(list($j[$h++],$j[$h++]),$j[$h++]) = $i[3];
53 list(list($l,$m),$n) = $k;
58 list($o,$p) = 20;
62 // list of lists with blanks and nulls expect 10 20 40 50 60 70 80
68 list(list(list($r,$s,,$t),list($u,$v),,$w),,$x) = $q4;
73 list($y,$z) = array();
77 list($aa,$bb) = array(10);
[all …]

Completed in 35 milliseconds

12345678910>>...14