/PHP-8.2/Zend/ |
H A D | zend_stack.c | 23 #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 D | zend_ptr_stack.c | 26 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 D | zend_llist.c | 200 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 D | zend_ptr_stack.h | 25 void **elements; member 51 …stack->elements = (void **) safe_perealloc(stack->elements, sizeof(void *), (stack->max), 0, stack… in END_EXTERN_C() 52 stack->top_element = stack->elements+stack->top; \ in END_EXTERN_C() 115 return stack->elements[stack->top - 1]; in zend_ptr_stack_top()
|
/PHP-8.2/ext/date/tests/ |
H A D | date_interval_non_relative_warning.phpt | 22 …eateFromDateString(): String 'next weekday 15:30' contains non-relative elements in %sdate_interva… 24 …l::createFromDateString(): String '+5 hours noon' contains non-relative elements in %sdate_interva… 26 …createFromDateString(): String '-8 days March 23' contains non-relative elements in %sdate_interva… 28 …:createFromDateString(): String '+72 seconds UTC' contains non-relative elements in %sdate_interva… 30 …e_from_date_string(): String 'next weekday 15:30' contains non-relative elements in %sdate_interva… 32 …create_from_date_string(): String '+5 hours noon' contains non-relative elements in %sdate_interva… 34 …ate_from_date_string(): String '-8 days March 23' contains non-relative elements in %sdate_interva… 36 …eate_from_date_string(): String '+72 seconds UTC' contains non-relative elements in %sdate_interva…
|
/PHP-8.2/ext/standard/tests/array/ |
H A D | array_diff_basic.phpt | 11 //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 D | array_sum_variation5.phpt | 2 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 D | range.phpt | 11 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 D | uasort_variation10.phpt | 23 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 ***
|
H A D | array_combine_error2.phpt | 27 // 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 D | array_filter_variation5.phpt | 6 * 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' ***
|
H A D | array_rand.phpt | 43 array_rand(): Argument #2 ($num) must be between 1 and the number of elements in argument #1 ($arra… 44 array_rand(): Argument #2 ($num) must be between 1 and the number of elements in argument #1 ($arra… 45 array_rand(): Argument #2 ($num) must be between 1 and the number of elements in argument #1 ($arra…
|
H A D | array_rand_variation5.phpt | 67 array_rand(): Argument #2 ($num) must be between 1 and the number of elements in argument #1 ($arra… 70 array_rand(): Argument #2 ($num) must be between 1 and the number of elements in argument #1 ($arra… 73 array_rand(): Argument #2 ($num) must be between 1 and the number of elements in argument #1 ($arra… 76 array_rand(): Argument #2 ($num) must be between 1 and the number of elements in argument #1 ($arra…
|
H A D | usort_variation9.phpt | 24 // different variables which are used as elements of $array_arg 30 // array_args an array containing elements with reference variables
|
/PHP-8.2/ext/spl/ |
H A D | spl_fixedarray.c | 50 zval *elements; member 82 if (array->elements) { in spl_fixedarray_empty() 93 array->elements = NULL; in spl_fixedarray_default_ctor() 101 zval *begin = array->elements + from, *end = array->elements + to; in spl_fixedarray_init_elems() 146 zval *begin = from->elements, *end = from->elements + size; in spl_fixedarray_copy_ctor() 157 zval *begin = array->elements + from, *end = array->elements + to; in spl_fixedarray_dtor_range() 169 zval *begin = array->elements, *end = array->elements + array->size; in spl_fixedarray_dtor() 170 array->elements = NULL; in spl_fixedarray_dtor() 204 array->elements = NULL; in spl_fixedarray_resize() 207 array->elements = safe_erealloc(array->elements, size, sizeof(zval), 0); in spl_fixedarray_resize() [all …]
|
/PHP-8.2/tests/lang/ |
H A D | foreachLoop.009.phpt | 8 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 D | foreachLoop.002.phpt | 29 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.
|
H A D | foreachLoop.012.phpt | 8 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"; 72 Popping elements off end of an unreferenced array 141 Shift elements off start of an unreferenced array 279 Adding elements to the end of an unreferenced array [all …]
|
/PHP-8.2/Zend/tests/ |
H A D | list_012.phpt | 2 Disallow empty elements in normal arrays 10 Fatal error: Cannot use empty array elements in arrays in %s on line %d
|
H A D | list_013.phpt | 2 Disallow tail empty elements in normal arrays 10 Fatal error: Cannot use empty array elements in arrays in %s on line %d
|
H A D | bug75426.phpt | 2 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
|
H A D | bug78010.phpt | 16 $obj = [new stdClass, new stdClass]; //This must have at least 2 elements 22 for ($i = 0; $i < 2; ++$i) { //This must run >=2 (increasing the number of elements in the array *2…
|
/PHP-8.2/ext/random/tests/03_randomizer/methods/ |
H A D | pickArrayKeys_error.phpt | 47 Random\Randomizer::pickArrayKeys(): Argument #2 ($num) must be between 1 and the number of elements… 48 Random\Randomizer::pickArrayKeys(): Argument #2 ($num) must be between 1 and the number of elements… 49 Random\Randomizer::pickArrayKeys(): Argument #2 ($num) must be between 1 and the number of elements…
|
/PHP-8.2/ext/dom/tests/ |
H A D | bug47430.phpt | 12 $elements = $dom->getElementsByTagName('i'); 13 foreach ($elements as $i) {
|
/PHP-8.2/ext/standard/tests/file/ |
H A D | fstat_variation8.phpt | 25 echo "PASSED: all elements are the same\n"; 31 PASSED: all elements are the same
|