Home
last modified time | relevance | path

Searched refs:elements (Results 1 – 25 of 264) sorted by relevance

1234567891011

/php-src/ext/dom/tests/
H A DDOMDocument_length_cache_invalidation.phpt11 $elements = $doc->getElementsByTagName('p');
12 $item = $elements->item(0); // Activate item cache
13 var_dump($elements->length); // Length not cached yet, should still compute
17 var_dump($elements->length);
18 $item = $elements->item(1);
20 $item = $elements->item(1);
22 $item = $elements->item(0);
24 $item = $elements->item(1);
H A DDOMDocument_item_cache_invalidation.phpt13 $elements = $doc->getElementsByTagName('p');
14 $elements->item(0); // Activate item cache
16 var_dump($elements);
17 var_dump($elements->item(0)->textContent); // First lookup
18 var_dump($elements->item(2)->textContent); // Uses cache
19 var_dump($elements->item(1)->textContent); // Does not use cache
26 $elements = $doc->getElementsByTagName('p');
27 $item = $elements->item(0); // Activate item cache
32 $item = $elements->item(1);
42 $elements = $root->getElementsByTagName('e');
[all …]
H A Dgh12455.phpt20 $elements = $xpath->query('//b:z');
21 foreach ($elements as $e) {
25 $elements = $xpath->query('//*[name()="b:z"]');
26 echo $elements->length;
H A DDOMDocument_getElementsByTagName_liveness_xinclude.phpt25 $elements = $dom->getElementsByTagName('p');
26 var_dump($elements->item(0)->textContent);
28 var_dump($elements->item(1)->textContent);
/php-src/Zend/
H A Dzend_stack.c23 #define ZEND_STACK_ELEMENT(stack, n) ((void *)((char *) (stack)->elements + (stack)->size * (n)))
30 stack->elements = NULL; in zend_stack_init()
38 stack->elements = safe_erealloc(stack->elements, stack->size, stack->max, 0); in zend_stack_push()
80 if (stack->elements) { in zend_stack_destroy()
81 efree(stack->elements); in zend_stack_destroy()
82 stack->elements = NULL; in zend_stack_destroy()
89 return stack->elements; in zend_stack_base()
154 if (stack->elements) { in zend_stack_clean()
155 efree(stack->elements); in zend_stack_clean()
156 stack->elements = NULL; in zend_stack_clean()
H A Dzend_ptr_stack.c26 stack->top_element = stack->elements = NULL; in zend_ptr_stack_init_ex()
74 if (stack->elements) { in zend_ptr_stack_destroy()
75 pefree(stack->elements, stack->persistent); in zend_ptr_stack_destroy()
85 func(stack->elements[i]); in zend_ptr_stack_apply()
94 func(stack->elements[i++]); in zend_ptr_stack_reverse_apply()
106 pefree(stack->elements[i], stack->persistent); in zend_ptr_stack_clean()
110 stack->top_element = stack->elements; in zend_ptr_stack_clean()
H A Dzend_llist.c200 zend_llist_element **elements; in zend_llist_sort() local
207 elements = (zend_llist_element **) emalloc(l->count * sizeof(zend_llist_element *)); in zend_llist_sort()
209 ptr = &elements[0]; in zend_llist_sort()
215 zend_sort(elements, l->count, sizeof(zend_llist_element *), in zend_llist_sort()
218 l->head = elements[0]; in zend_llist_sort()
219 elements[0]->prev = NULL; in zend_llist_sort()
222 elements[i]->prev = elements[i-1]; in zend_llist_sort()
223 elements[i-1]->next = elements[i]; in zend_llist_sort()
225 elements[i-1]->next = NULL; in zend_llist_sort()
226 l->tail = elements[i-1]; in zend_llist_sort()
[all …]
H A Dzend_ptr_stack.h27 void **elements; member
53 …stack->elements = (void **) safe_perealloc(stack->elements, sizeof(void *), (stack->max), 0, stack… in END_EXTERN_C()
54 stack->top_element = stack->elements+stack->top; \ in END_EXTERN_C()
117 return stack->elements[stack->top - 1]; in zend_ptr_stack_top()
/php-src/ext/date/tests/
H A Ddate_interval_non_relative_warning.phpt28 DateMalformedIntervalStringException: String 'next weekday 15:30' contains non-relative elements
29 DateMalformedIntervalStringException: String '+5 hours noon' contains non-relative elements
30 DateMalformedIntervalStringException: String '-8 days March 23' contains non-relative elements
31 DateMalformedIntervalStringException: String '+72 seconds UTC' contains non-relative elements
34 …ate_from_date_string(): String 'next weekday 15:30' contains non-relative elements in %s on line %d
36 …l_create_from_date_string(): String '+5 hours noon' contains non-relative elements in %s on line %d
38 …reate_from_date_string(): String '-8 days March 23' contains non-relative elements in %s on line %d
40 …create_from_date_string(): String '+72 seconds UTC' contains non-relative elements in %s on line %d
/php-src/ext/standard/tests/array/
H A Darray_diff_basic.phpt11 //Test indexed array with integers as elements
15 echo "-- Test indexed array with integers as elements --\n";
20 //Test indexed array with strings as elements
24 echo "-- Test indexed array with strings as elements --\n";
28 //Test associative array with strings as keys and integers as elements
32 echo "-- Test associative array with strings as keys and integers as elements --\n";
36 //Test associative array with strings as keys and elements
51 -- Test indexed array with integers as elements --
64 -- Test indexed array with strings as elements --
77 -- Test associative array with strings as keys and integers as elements --
[all …]
H A Darray_sum_variation5.phpt2 Test array_sum() function : usage variations - array with reference variables as elements
6 * Testing array_sum() with 'input' having reference variables as elements
9 echo "*** Testing array_sum() : array with elements as reference ***\n";
16 // input array containing elements as reference variables
30 *** Testing array_sum() : array with elements as reference ***
H A Darray_combine_error2.phpt27 // Testing array_combine with arrays having unequal number of elements
28 echo "\n-- Testing array_combine() function by passing array with unequal number of elements --\n";
44 array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements
46 array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements
47 -- Testing array_combine() function by passing array with unequal number of elements --
48 array_combine(): Argument #1 ($keys) and argument #2 ($values) must have the same number of elements
H A Darray_filter_variation5.phpt6 * With default callback function argument, array_filter() removes elements which are interpreted as…
21 echo "*** Testing array_filter() : usage variations - different false elements in 'input' ***\n";
31 // input array with different false elements
63 *** Testing array_filter() : usage variations - different false elements in 'input' ***
/php-src/ext/spl/
H A Dspl_fixedarray.c42 zval *elements; member
72 if (array->elements) { in spl_fixedarray_empty()
83 array->elements = NULL; in spl_fixedarray_default_ctor()
91 zval *begin = array->elements + from, *end = array->elements + to; in spl_fixedarray_init_elems()
135 zval *begin = from->elements, *end = from->elements + size; in spl_fixedarray_copy_ctor()
146 zval *begin = array->elements + from, *end = array->elements + to; in spl_fixedarray_dtor_range()
158 zval *begin = array->elements, *end = array->elements + array->size; in spl_fixedarray_dtor()
159 array->elements = NULL; in spl_fixedarray_dtor()
195 array->elements = safe_erealloc(array->elements, size, sizeof(zval), 0); in spl_fixedarray_resize()
201 array->elements = erealloc(array->elements, sizeof(zval) * size); in spl_fixedarray_resize()
[all …]
/php-src/tests/lang/
H A DforeachLoop.009.phpt8 echo "\nRemove elements from a referenced array during loop\n";
16 echo "\nRemove elements from a referenced array during loop, using &\$value\n";
24 echo "\nAdd elements to a referenced array during loop\n";
38 echo "\nAdd elements to a referenced array during loop, using &\$value\n";
54 Remove elements from a referenced array during loop
59 Remove elements from a referenced array during loop, using &$value
63 Add elements to a referenced array during loop
68 Add elements to a referenced array during loop, using &$value
H A DforeachLoop.002.phpt29 echo "\nPushing elements onto an unreferenced array.\n";
43 echo "\nPushing elements onto an unreferenced array, using &\$value.\n";
57 echo "\nPopping elements off an unreferenced array.\n";
65 echo "\nPopping elements off an unreferenced array, using &\$value.\n";
108 Pushing elements onto an unreferenced array.
124 Pushing elements onto an unreferenced array, using &$value.
159 Popping elements off an unreferenced array.
166 Popping elements off an unreferenced array, using &$value.
/php-src/ext/dom/tests/modern/spec/
H A DDocument_createElementNS.phpt14 $elements = [];
16 $elements[] = createElementNS($dom, NULL, "qname", "&hello");
17 $elements[] = createElementNS($dom, "urn:foo", "foo:bar", "&hello");
18 $elements[] = createElementNS($dom, "urn:foo", "bar:BAR", "&hello");
19 $elements[] = createElementNS($dom, "urn:foo", "bar:BAR", "&hello");
20 $elements[] = createElementNS($dom, "http://www.w3.org/2000/xmlns/", "xmlns", "&hello");
21 $elements[] = createElementNS($dom, "http://www.w3.org/XML/1998/namespace", "xml", "&hello");
23 foreach ($elements as $element) {
/php-src/ext/standard/tests/array/sort/
H A Duasort_variation10.phpt23 echo "*** Testing uasort() : 'array_arg' with elements as reference ***\n";
25 // different variables which are used as elements of 'array_arg'
31 // array_args an array containing elements with reference variables
47 *** Testing uasort() : 'array_arg' with elements as reference ***
/php-src/ext/mbstring/tests/
H A Dmb_decode_numericentity_errors.phpt8 $convmap = array(0xFF, 0x2FFFF, 0); // 3 elements
14 $convmap = array(0xFF, "not an int", 0, 0); // 3 elements
22 mb_decode_numericentity(): Argument #2 ($map) must have a multiple of 4 elements
H A Dmb_encode_numericentity_errors.phpt8 $convmap = array(0xFF, 0x2FFFF, 0); // 3 elements
14 $convmap = array(0xFF, "not an int", 0, 0); // 3 elements
22 mb_encode_numericentity(): Argument #2 ($map) must have a multiple of 4 elements
/php-src/Zend/tests/list/
H A Dlist_012.phpt2 Disallow empty elements in normal arrays
10 Fatal error: Cannot use empty array elements in arrays in %s on line %d
H A Dlist_013.phpt2 Disallow tail empty elements in normal arrays
10 Fatal error: Cannot use empty array elements in arrays in %s on line %d
/php-src/Zend/tests/
H A Dbug75426.phpt2 Bug #75426: "Cannot use empty array elements" reports wrong position
15 Fatal error: Cannot use empty array elements in arrays in %s on line 5
/php-src/ext/dom/tests/modern/html/parser/
H A DHTMLDocument_fromString_LIBXML_HTML_NOIMPLIED_namespace.phpt8 echo "--- No elements ---\n";
20 echo "--- Multiple elements ---\n";
31 --- No elements ---
39 --- Multiple elements ---
/php-src/ext/dom/tests/modern/extensions/
H A DElement_substitutedNodeValue.phpt12 var_dump($dom->documentElement->nodeValue); // Should always be NULL for elements
17 var_dump($dom->documentElement->nodeValue); // Should always be NULL for elements
22 var_dump($dom->documentElement->nodeValue); // Should always be NULL for elements

Completed in 41 milliseconds

1234567891011