/PHP-5.3/Zend/ |
H A D | zend_ptr_stack.h | 47 if (stack->top+count > stack->max) { \ in END_EXTERN_C() 49 stack->max *= 2; \ in END_EXTERN_C() 51 …stack->elements = (void **) perealloc(stack->elements, (sizeof(void *) * (stack->max)), stack->per… in END_EXTERN_C() 52 stack->top_element = stack->elements+stack->top; \ in END_EXTERN_C() 64 *(stack->top_element++) = a; 65 *(stack->top_element++) = b; 66 *(stack->top_element++) = c; 89 stack->top -= 3; in zend_ptr_stack_3_pop() 96 stack->top -= 2; in zend_ptr_stack_2_pop() 103 stack->top++; in zend_ptr_stack_push() [all …]
|
H A D | zend_stack.c | 27 stack->top = 0; in zend_stack_init() 39 if (stack->top >= stack->max) { /* we need to allocate more memory */ in zend_stack_push() 40 stack->elements = (void **) erealloc(stack->elements, in zend_stack_push() 46 stack->elements[stack->top] = (void *) emalloc(size); in zend_stack_push() 47 memcpy(stack->elements[stack->top], element, size); in zend_stack_push() 48 return stack->top++; in zend_stack_push() 54 if (stack->top > 0) { in zend_stack_top() 55 *element = stack->elements[stack->top - 1]; in zend_stack_top() 66 if (stack->top > 0) { in zend_stack_del_top() 67 efree(stack->elements[--stack->top]); in zend_stack_del_top() [all …]
|
H A D | zend_ptr_stack.c | 32 stack->top = 0; in zend_ptr_stack_init_ex() 52 stack->top++; in zend_ptr_stack_n_push() 69 stack->top--; in zend_ptr_stack_n_pop() 79 if (stack->elements) { in zend_ptr_stack_destroy() 80 pefree(stack->elements, stack->persistent); in zend_ptr_stack_destroy() 87 int i = stack->top; in zend_ptr_stack_apply() 99 int i = stack->top; in zend_ptr_stack_clean() 102 pefree(stack->elements[i], stack->persistent); in zend_ptr_stack_clean() 105 stack->top = 0; in zend_ptr_stack_clean() 106 stack->top_element = stack->elements; in zend_ptr_stack_clean() [all …]
|
H A D | zend_stack.h | 34 ZEND_API int zend_stack_init(zend_stack *stack); 35 ZEND_API int zend_stack_push(zend_stack *stack, const void *element, int size); 36 ZEND_API int zend_stack_top(const zend_stack *stack, void **element); 37 ZEND_API int zend_stack_del_top(zend_stack *stack); 38 ZEND_API int zend_stack_int_top(const zend_stack *stack); 39 ZEND_API int zend_stack_is_empty(const zend_stack *stack); 40 ZEND_API int zend_stack_destroy(zend_stack *stack); 41 ZEND_API void **zend_stack_base(const zend_stack *stack); 42 ZEND_API int zend_stack_count(const zend_stack *stack); 43 ZEND_API void zend_stack_apply(zend_stack *stack, int type, int (*apply_function)(void *element)); [all …]
|
H A D | zend_execute.h | 151 #define ZEND_VM_STACK_ELEMETS(stack) \ argument 152 ((void**)(((char*)(stack)) + ZEND_MM_ALIGNED_SIZE(sizeof(struct _zend_vm_stack)))) 178 zend_vm_stack stack = EG(argument_stack); in zend_vm_stack_destroy() local 180 while (stack != NULL) { in zend_vm_stack_destroy() 181 zend_vm_stack p = stack->prev; in zend_vm_stack_destroy() 182 efree(stack); in zend_vm_stack_destroy() 183 stack = p; in zend_vm_stack_destroy() 334 static inline void zend_arg_types_stack_2_pop(zend_ptr_stack *stack, zval **object, zend_function *… in zend_arg_types_stack_2_pop() argument 338 zend_ptr_stack_2_pop(stack, &a, &b); in zend_arg_types_stack_2_pop() 344 static inline void zend_arg_types_stack_3_pop(zend_ptr_stack *stack, zend_class_entry **called_scop… in zend_arg_types_stack_3_pop() argument [all …]
|
/PHP-5.3/ext/spl/tests/ |
H A D | dllist_004.phpt | 7 $stack = new SplStack(); 10 $stack->pop(); 15 $stack->shift(); 22 $stack->push($a); 24 $stack->push(&$a); 26 echo $stack->pop()."\n"; 30 $stack->push(1); 31 $stack->push(2); 40 $stack->push(NULL); 41 $stack->push(NULL); [all …]
|
H A D | SplStack_setIteratorMode.phpt | 7 $stack = new SplStack(); 9 $stack->setIteratorMode(SplDoublyLinkedList::IT_MODE_FIFO);
|
/PHP-5.3/ext/wddx/ |
H A D | wddx.c | 177 stack->top = 0; in wddx_stack_init() 181 stack->done = 0; in wddx_stack_init() 191 if (stack->top >= stack->max) { /* we need to allocate more memory */ in wddx_stack_push() 192 stack->elements = (void **) erealloc(stack->elements, in wddx_stack_push() 195 stack->elements[stack->top] = (void *) emalloc(size); in wddx_stack_push() 196 memcpy(stack->elements[stack->top], element, size); in wddx_stack_push() 206 *element = stack->elements[stack->top - 1]; in wddx_stack_top() 963 stack->top--; in php_wddx_pop_element() 1035 stack->top--; in php_wddx_pop_element() 1048 if (!wddx_stack_is_empty(stack) && !stack->done) { in php_wddx_process_data() [all …]
|
/PHP-5.3/ext/standard/tests/array/ |
H A D | array_shift_variation7.phpt | 5 /* Prototype : mixed array_shift(array &$stack) 16 $stack = array ('one' => 'un', 'two' => 'deux'); 19 var_dump($result = array_shift($stack)); 22 echo key($stack) . " => " . current ($stack) . "\n";
|
H A D | array_push_variation5.phpt | 5 /* Prototype : int array_push(array $stack, mixed $var [, mixed $...]) 16 $stack = array ('one' => 'un', 'two' => 'deux'); 20 var_dump($result = array_push($stack, $var0)); 23 echo key($stack) . " => " . current ($stack) . "\n";
|
H A D | array_shift_variation5.phpt | 5 /* Prototype : mixed array_shift(array &$stack) 12 * as the $stack argument of another call to array_shift() 18 $stack = array ( array ( array ('zero', 'one', 'two'), 'un', 'deux'), 'eins', 'zwei'); 22 var_dump(array_shift(array_shift(array_shift($stack)))); 24 $stack = array (array( array('zero', 'one', 'two'), 'un', 'deux'), 'eins', 'zwei'); 27 $result1 = array_shift($stack);
|
H A D | array_push_variation3.phpt | 5 /* Prototype : int array_push(array $stack, mixed $var [, mixed $...]) 13 * 2. as sub-array as $stack arg 24 echo "\n-- Pass sub-array as \$stack argument --\n"; 51 -- Pass sub-array as $stack argument --
|
H A D | array_push_error1.phpt | 5 /* Prototype : int array_push(array $stack, mixed $var [, mixed $...]) 18 $stack = array(1, 2); 19 var_dump( array_push($stack) );
|
H A D | array_push_variation4.phpt | 7 /* Prototype : int array_push(array $stack, mixed $var [, mixed $...]) 15 * 2. $var argument is a reference to $stack argument 33 echo "\n-- Pass \$var argument which is a reference to \$stack argument --\n"; 65 -- Pass $var argument which is a reference to $stack argument --
|
H A D | array_shift_error.phpt | 5 /* Prototype : mixed array_shift(array &$stack) 22 $stack = array(1, 2); 24 var_dump( array_shift($stack, $extra_arg) );
|
H A D | array_push_variation2.phpt | 5 /* Prototype : int array_push(array $stack, mixed $var [, mixed $...]) 17 $stack = array (1, 2); 92 $temp_array = $stack;
|
/PHP-5.3/tests/lang/ |
H A D | passByReference_012.phpt | 10 $stack = array ( array ( 'two' )); 11 var_dump(array_shift(array_shift($stack))); 15 $stack = $original; 16 var_dump(array_shift(array_shift($stack)));
|
H A D | 012.phpt | 2 Testing stack after early function return
|
/PHP-5.3/sapi/apache_hooks/ |
H A D | mod_php5.c | 117 stack->top = 0; in sapi_stack_init_ex() 118 stack->persistent = persistent; in sapi_stack_init_ex() 120 if (!stack->elements) { in sapi_stack_init_ex() 129 if (stack->top >= stack->max) { /* we need to allocate more memory */ in sapi_stack_push() 130 stack->elements = (void **) perealloc(stack->elements, in sapi_stack_push() 131 (sizeof(void **) * (stack->max += STACK_BLOCK_SIZE)), stack->persistent); in sapi_stack_push() 132 if (!stack->elements) { in sapi_stack_push() 136 stack->elements[stack->top] = (void *) element; in sapi_stack_push() 137 return stack->top++; in sapi_stack_push() 140 if(stack->top == 0) { in sapi_stack_pop() [all …]
|
/PHP-5.3/Zend/tests/ |
H A D | bug36214.phpt | 8 public $stack = array(); 11 $this->stack[$name] = $var;return; 15 return $this->stack[$name];
|
/PHP-5.3/ext/spl/internal/ |
H A D | splstack.inc | 13 * @brief Implementation of a stack through a DoublyLinkedList. As SplStack 15 * though they don't make much sense for a stack. 19 * stack implemented using a doubly linked list (DLL). 34 * @note The iteration's direction is not modifiable for stack instances
|
/PHP-5.3/sapi/cli/ |
H A D | config.w32 | 13 ADD_FLAG("LDFLAGS_CLI", "/stack:8388608"); 18 ADD_FLAG("LDFLAGS_CLI_WIN32", "/stack:8388608");
|
/PHP-5.3/ext/pdo_mysql/tests/ |
H A D | pdo_mysql_subclass.phpt | 44 $stack = debug_backtrace(); 45 if (!isset($stack[1])) 48 printf("%s(", $stack[1]['function']); 50 foreach ($stack[1]['args'] as $k => $v)
|
/PHP-5.3/sapi/cgi/ |
H A D | config.w32 | 7 ADD_FLAG("LDFLAGS_CGI", "/stack:8388608");
|
/PHP-5.3/ext/json/ |
H A D | JSON_parser.h | 16 int* stack; member
|