Home
last modified time | relevance | path

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

12345678910>>...19

/php-src/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 DDOMDocument_getElementsByTagName_liveness_tree_walk.phpt13 var_dump($list->length);
18 var_dump($list->item($i));
21 foreach ($list as $item) {
27 var_dump($list->length);
32 var_dump($list->item($i));
43 $list->item(0)->remove();
44 $list->item(0)->remove();
45 $list->item(0)->remove();
46 var_dump($list->length);
47 var_dump($list->item(0));
[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-src/ext/dom/lexbor/lexbor/html/tree/
H A Dactive_formatting.c29 void **list = tree->active_formatting->list; in lxb_html_tree_active_formatting_up_to_last_marker() local
47 void **list = tree->active_formatting->list; in lxb_html_tree_active_formatting_remove_by_node() local
56 memmove(list + idx, list + idx + 1, sizeof(void *) * delta); in lxb_html_tree_active_formatting_remove_by_node()
70 void **list = tree->active_formatting->list; in lxb_html_tree_active_formatting_find_by_node() local
94 void **list = tree->active_formatting->list; in lxb_html_tree_active_formatting_find_by_node_reverse() local
125 void **list = af->list; in lxb_html_tree_active_formatting_reconstruct_elements() local
164 node = list[af_idx]; in lxb_html_tree_active_formatting_reconstruct_elements()
189 lxb_dom_node_t **list = (lxb_dom_node_t **) tree->active_formatting->list; in lxb_html_tree_active_formatting_between_last_marker() local
199 if (list[idx]->local_name == tag_idx && list[idx]->ns == LXB_NS_HTML) { in lxb_html_tree_active_formatting_between_last_marker()
215 lxb_dom_node_t **list = (lxb_dom_node_t **) tree->active_formatting->list; in lxb_html_tree_active_formatting_push_with_check_dupl() local
[all …]
H A Dopen_elements.c16 void **list = tree->open_elements->list; in lxb_html_tree_open_elements_remove_by_node() local
25 memmove(list + len, list + len + 1, sizeof(void *) * delta); in lxb_html_tree_open_elements_remove_by_node()
40 void **list = tree->open_elements->list; in lxb_html_tree_open_elements_pop_until_tag_id() local
61 void **list = tree->open_elements->list; in lxb_html_tree_open_elements_pop_until_h123456() local
91 void **list = tree->open_elements->list; in lxb_html_tree_open_elements_pop_until_td_th() local
119 void **list = tree->open_elements->list; in lxb_html_tree_open_elements_pop_until_node() local
150 void **list = tree->open_elements->list; in lxb_html_tree_open_elements_find_by_node() local
174 void **list = tree->open_elements->list; in lxb_html_tree_open_elements_find_by_node_reverse() local
201 void **list = tree->open_elements->list; in lxb_html_tree_open_elements_find() local
205 node = list[i]; in lxb_html_tree_open_elements_find()
[all …]
/php-src/ext/dom/tests/modern/token_list/
H A Dcontains.phpt10 $list = $element->classList;
14 var_dump($list->contains(''));
15 var_dump($list->contains('A'));
16 var_dump($list->contains('B'));
17 var_dump($list->contains('C'));
21 var_dump($list->contains(' A'));
22 var_dump($list->contains('B '));
27 var_dump($list->contains('a'));
28 var_dump($list->contains('b'));
29 var_dump($list->contains('c'));
[all …]
H A Ddimensions.phpt9 $list = $dom->documentElement->classList;
13 var_dump($list[$i], isset($list[$i]), empty($list[$i]));
17 var_dump($list["0"], isset($list["0"]), empty($list["0"]));
21 var_dump($list["foo"], isset($list["foo"]), empty($list["foo"]));
27 var_dump($list[1.1], isset($list[1.1]), empty($list[1.1]));
30 var_dump($list[true], isset($list[true]), empty($list[true]));
33 var_dump($list[false], isset($list[false]), empty($list[false]));
38 var_dump($list[$ref], isset($list[$ref]), empty($list[$ref]));
H A Dadd.phpt9 $list = $dom->documentElement->classList;
11 $list->add();
12 $list->add('a', 'b');
13 $list->add('c');
18 $list->add($ref);
22 $list->value = '';
23 $list->add('e');
/php-src/ext/dom/lexbor/lexbor/core/
H A Darray.c31 if (array->list == NULL) { in lexbor_array_init()
52 if (array->list) { in lexbor_array_destroy()
55 array->list = lexbor_free(array->list); in lexbor_array_destroy()
68 void **list; in lexbor_array_expand() local
75 list = lexbor_realloc(array->list, sizeof(void *) * new_size); in lexbor_array_expand()
77 if (list == NULL) in lexbor_array_expand()
80 array->list = list; in lexbor_array_expand()
83 return list; in lexbor_array_expand()
138 memmove(&array->list[idx + 1], &array->list[idx], in lexbor_array_insert()
164 array->list[idx] = value; in lexbor_array_set()
[all …]
H A Darray_obj.c32 array->list = lexbor_malloc(sizeof(uint8_t *) in lexbor_array_obj_init()
34 if (array->list == NULL) { in lexbor_array_obj_init()
55 if (array->list) { in lexbor_array_obj_destroy()
58 array->list = lexbor_free(array->list); in lexbor_array_obj_destroy()
71 uint8_t *list; in lexbor_array_obj_expand() local
80 list = lexbor_realloc(array->list, sizeof(uint8_t *) in lexbor_array_obj_expand()
82 if (list == NULL) { in lexbor_array_obj_expand()
86 array->list = list; in lexbor_array_obj_expand()
89 return list; in lexbor_array_obj_expand()
171 memmove(&array->list[ begin * array->struct_size ], in lexbor_array_obj_delete()
[all …]
/php-src/ext/phar/tests/zip/
H A Dbug48791.phpt12list-style-name="L1"/><style:style style:name="T1" style:family="text"><style:text-properties styl…
/php-src/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 Dgh16464.phpt2 GH-16464: Use-after-free in SplDoublyLinkedList::offsetSet() when modifying list in destructor of o…
10 global $list;
11 var_dump($list->pop());
15 $list = new SplDoublyLinkedList;
16 $list->add(0, new C);
17 $list[0] = 42;
18 var_dump($list);
H A Dgh16589.phpt10 global $list;
11 $list->pop();
16 $list = new SplDoublyLinkedList;
17 $list->add(0, new C);
18 $list->add(1, 1);
19 var_dump($list->serialize());
/php-src/Zend/tests/list/
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 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 …]
/php-src/ext/pcre/pcre2lib/
H A Dpcre2_auto_possess.c326 uint32_t *list) in get_chr_property_list() argument
341 list[0] = c; in get_chr_property_list()
342 list[1] = FALSE; in get_chr_property_list()
375 list[0] = *code; in get_chr_property_list()
379 c = list[0]; in get_chr_property_list()
407 list[2] = chr; in get_chr_property_list()
415 list[2] = chr; in get_chr_property_list()
490 list[1] = TRUE; in get_chr_property_list()
540 uint32_t list[8]; in compare_opcodes() local
728 list_ptr = list; in compare_opcodes()
[all …]
/php-src/ext/dom/lexbor/lexbor/css/selectors/
H A Dselector.c118 selector->list = list; in lxb_css_selector_create()
174 if (list == NULL) { in lxb_css_selector_list_create()
180 return list; in lxb_css_selector_list_create()
187 list->next->prev = list->prev; in lxb_css_selector_list_remove()
191 list->prev->next = list->next; in lxb_css_selector_list_remove()
201 if (selectors->list == list) { in lxb_css_selector_list_selectors_remove()
202 selectors->list = list->next; in lxb_css_selector_list_selectors_remove()
215 lexbor_dobject_free(list->memory->objs, list); in lxb_css_selector_list_destroy()
227 list = next; in lxb_css_selector_list_destroy_chain()
522 list = list->next; in lxb_css_selector_serialize_list_chain()
[all …]
/php-src/Zend/tests/foreach/
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))) {
/php-src/ext/spl/
H A Dspl_functions.c24 void spl_add_class_name(zval *list, zend_class_entry *pce, int allow, int ce_flags) in spl_add_class_name() argument
29 if ((tmp = zend_hash_find(Z_ARRVAL_P(list), pce->name)) == NULL) { in spl_add_class_name()
32 zend_hash_add(Z_ARRVAL_P(list), pce->name, &t); in spl_add_class_name()
39 void spl_add_interfaces(zval *list, zend_class_entry * pce, int allow, int ce_flags) in spl_add_interfaces() argument
44 spl_add_class_name(list, pce->interfaces[num_interfaces], allow, ce_flags); in spl_add_interfaces()
51 void spl_add_traits(zval *list, zend_class_entry * pce, int allow, int ce_flags) in spl_add_traits() argument
59 spl_add_class_name(list, trait, allow, ce_flags); in spl_add_traits()
66 void spl_add_classes(zend_class_entry *pce, zval *list, bool sub, int allow, int ce_flags) in spl_add_classes() argument
69 spl_add_class_name(list, pce, allow, ce_flags); in spl_add_classes()
71 spl_add_interfaces(list, pce, allow, ce_flags); in spl_add_classes()
[all …]

Completed in 87 milliseconds

12345678910>>...19