Home
last modified time | relevance | path

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

12345678910>>...15

/PHP-5.5/Zend/
H A Dzend_stack.c29 stack->elements = NULL; in zend_stack_init()
36 stack->elements = (void **) erealloc(stack->elements, in zend_stack_push()
38 if (!stack->elements) { in zend_stack_push()
51 *element = stack->elements[stack->top - 1]; in zend_stack_top()
63 efree(stack->elements[--stack->top]); in zend_stack_del_top()
95 if (stack->elements) { in zend_stack_destroy()
97 efree(stack->elements[i]); in zend_stack_destroy()
99 efree(stack->elements); in zend_stack_destroy()
100 stack->elements = NULL; in zend_stack_destroy()
109 return stack->elements; in zend_stack_base()
[all …]
H A Dzend_ptr_stack.c30 stack->top_element = stack->elements = NULL; in zend_ptr_stack_init_ex()
78 if (stack->elements) { in zend_ptr_stack_destroy()
79 pefree(stack->elements, stack->persistent); in zend_ptr_stack_destroy()
89 func(stack->elements[i]); in zend_ptr_stack_apply()
101 pefree(stack->elements[i], stack->persistent); in zend_ptr_stack_clean()
105 stack->top_element = stack->elements; in zend_ptr_stack_clean()
H A Dzend_llist.c199 zend_llist_element **elements; in zend_llist_sort() local
206 elements = (zend_llist_element **) emalloc(l->count * sizeof(zend_llist_element *)); in zend_llist_sort()
208 ptr = &elements[0]; in zend_llist_sort()
214 zend_qsort(elements, l->count, sizeof(zend_llist_element *), (compare_func_t) comp_func TSRMLS_CC); in zend_llist_sort()
216 l->head = elements[0]; in zend_llist_sort()
217 elements[0]->prev = NULL; in zend_llist_sort()
220 elements[i]->prev = elements[i-1]; in zend_llist_sort()
221 elements[i-1]->next = elements[i]; in zend_llist_sort()
223 elements[i-1]->next = NULL; in zend_llist_sort()
224 l->tail = elements[i-1]; in zend_llist_sort()
[all …]
H A Dzend_ptr_stack.h27 void **elements; member
52 …stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->per… in END_EXTERN_C()
53 stack->top_element = stack->elements+stack->top; \ in END_EXTERN_C()
116 return stack->elements[stack->top - 1]; in zend_ptr_stack_top()
/PHP-5.5/ext/standard/tests/array/
H A Darray_diff_basic.phpt17 //Test indexed array with integers as elements
21 echo "-- Test indexed array with integers as elements --\n";
26 //Test indexed array with strings as elements
30 echo "-- Test indexed array with strings as elements --\n";
34 //Test associative array with strings as keys and integers as elements
38 echo "-- Test associative array with strings as keys and integers as elements --\n";
42 //Test associative array with strings as keys and elements
57 -- Test indexed array with integers as elements --
70 -- Test indexed array with strings as elements --
83 -- 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
11 * Testing array_sum() with 'input' having reference variables as elements
14 echo "*** Testing array_sum() : array with elements as reference ***\n";
21 // input array containing elements as reference variables
35 *** Testing array_sum() : array with elements as reference ***
H A Darray_fill.phpt27 Warning: array_fill(): Number of elements must be positive in %s on line %d
32 Warning: array_fill(): Number of elements must be positive in %s on line %d
37 Warning: array_fill(): Number of elements must be positive in %s on line %d
42 Warning: array_fill(): Number of elements must be positive in %s on line %d
47 Warning: array_fill(): Number of elements must be positive in %s on line %d
52 Warning: array_fill(): Number of elements must be positive in %s on line %d
141 Warning: array_fill(): Number of elements must be positive in %s on line %d
146 Warning: array_fill(): Number of elements must be positive in %s on line %d
151 Warning: array_fill(): Number of elements must be positive in %s on line %d
156 Warning: array_fill(): Number of elements must be positive in %s on line %d
[all …]
H A Darray_combine_error2.phpt6 * Description: Creates an array by using the elements of the first parameter as keys
7 * and the elements of the second as the corresponding values
25 // Testing array_combine with arrays having unequal number of elements
26 echo "\n-- Testing array_combine() function by passing array with unequal number of elements --\n";
40 Warning: array_combine(): Both parameters should have an equal number of elements in %s on line %d
45 Warning: array_combine(): Both parameters should have an equal number of elements in %s on line %d
48 -- Testing array_combine() function by passing array with unequal number of elements --
50 Warning: array_combine(): Both parameters should have an equal number of elements in %s on line %d
H A Darray_rand_variation2.phpt94 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
102 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
107 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
136 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
141 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
146 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
151 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
156 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
161 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
169 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
[all …]
H A Drange.phpt11 echo "-- An array of elements from low to high --\n";
13 echo "\n-- An array of elements from high to low --\n";
17 echo "-- An array of elements from low to high --\n";
19 echo "\n-- An array of elements from high to low --\n";
23 echo "-- An array of elements from low to high --\n";
55 -- An array of elements from low to high --
79 -- An array of elements from high to low --
104 -- An array of elements from low to high --
128 -- An array of elements from high to low --
153 -- An array of elements from low to high --
[all …]
H A Darray_filter_variation5.phpt6 * Description: Filters elements from the array via the callback.
11 * With default callback function argument, array_filter() removes elements which are interpreted as…
27 echo "*** Testing array_filter() : usage variations - different false elements in 'input' ***\n";
37 // input array with different false elements
69 *** Testing array_filter() : usage variations - different false elements in 'input' ***
H A Darray_fill_variation2.phpt6 …* Description: Create an array containing num elements starting with index start_key each initiali…
109 Warning: array_fill(): Number of elements must be positive in %s on line %d
126 Warning: array_fill(): Number of elements must be positive in %s on line %d
130 Warning: array_fill(): Number of elements must be positive in %s on line %d
154 Warning: array_fill(): Number of elements must be positive in %s on line %d
158 Warning: array_fill(): Number of elements must be positive in %s on line %d
167 Warning: array_fill(): Number of elements must be positive in %s on line %d
176 Warning: array_fill(): Number of elements must be positive in %s on line %d
200 Warning: array_fill(): Number of elements must be positive in %s on line %d
204 Warning: array_fill(): Number of elements must be positive in %s on line %d
H A Darray_rand.phpt23 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
29 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
32 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
35 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
H A Duasort_variation10.phpt35 echo "*** Testing uasort() : 'array_arg' with elements as reference ***\n";
37 // different variables which are used as elements of 'array_arg'
43 // array_args an array containing elements with reference variables
59 *** Testing uasort() : 'array_arg' with elements as reference ***
H A Darray_rand_variation5.phpt57 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
62 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
67 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
72 Warning: array_rand(): Second argument has to be between 1 and the number of elements in the array …
H A Darray_push_error2.phpt6 * Description: Pushes elements onto the end of the array
12 * then try and push new elements onto the array
/PHP-5.5/ext/spl/
H A Dspl_fixedarray.c47 zval **elements; member
85 array->elements = NULL; in spl_fixedarray_init()
109 if (array->elements[i]) { in spl_fixedarray_resize()
114 if (array->elements) { in spl_fixedarray_resize()
115 efree(array->elements); in spl_fixedarray_resize()
116 array->elements = NULL; in spl_fixedarray_resize()
119 array->elements = safe_erealloc(array->elements, size, sizeof(zval *), 0); in spl_fixedarray_resize()
129 array->elements = erealloc(array->elements, sizeof(zval *) * size); in spl_fixedarray_resize()
140 if (from->elements[i]) { in spl_fixedarray_copy()
142 to->elements[i] = from->elements[i]; in spl_fixedarray_copy()
[all …]
H A Dspl_heap.c59 spl_ptr_heap_element *elements; member
253 heap->elements[i] = heap->elements[(i-1)/2]; in spl_ptr_heap_insert()
262 heap->elements[i] = elem; in spl_ptr_heap_insert()
272 return heap->elements[0]; in spl_ptr_heap_top()
286 top = heap->elements[0]; in spl_ptr_heap_delete_top()
299 heap->elements[i] = heap->elements[j]; in spl_ptr_heap_delete_top()
310 heap->elements[i] = bottom; in spl_ptr_heap_delete_top()
329 memcpy(heap->elements, from->elements, sizeof(spl_ptr_heap_element)*from->max_size); in spl_ptr_heap_clone()
346 efree(heap->elements); in spl_ptr_heap_destroy()
367 if (intern->heap->elements[i]) { in spl_heap_object_free_storage()
[all …]
/PHP-5.5/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";
55 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
73 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";
109 Pushing elements onto an unreferenced array.
125 Pushing elements onto an unreferenced array, using &$value.
160 Popping elements off an unreferenced array.
167 Popping elements off an unreferenced array, using &$value.
H A DforeachLoop.012.phpt8 function withRefValue($elements, $transform) {
9 echo "\n---( Array with $elements element(s): )---\n";
11 for ($i=0; $i<$elements; $i++) {
35 echo "\nPopping elements off end of an unreferenced array";
42 echo "\n\n\nShift elements off start of an unreferenced array";
56 echo "\n\n\nAdding elements to the end of an unreferenced array";
63 echo "\n\n\nAdding elements to the start of an unreferenced array";
73 Popping elements off end of an unreferenced array
142 Shift elements off start of an unreferenced array
280 Adding elements to the end of an unreferenced array
[all …]
/PHP-5.5/ext/simplexml/
H A DREADME6 2) numeric indices denote elements
16 always results in iteration of 'node_name' elements. So no further
19 When an elements TEXT data is being accessed through a property
31 At the moment property access to multiple elements of the same
/PHP-5.5/ext/dom/tests/
H A Dbug47430.phpt12 $elements = $dom->getElementsByTagName('i');
13 foreach ($elements as $i) {
/PHP-5.5/ext/dba/tests/
H A Ddba014.phpt2 DBA with array key with array containing too many elements
27 Catchable fatal error: dba_insert(): Key does not have exactly two elements: (key, name) in %sdba01…
/PHP-5.5/ext/standard/tests/file/
H A Dfstat_variation8.phpt25 echo "PASSED: all elements are the same\n";
32 PASSED: all elements are the same

Completed in 68 milliseconds

12345678910>>...15