Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 25 of 96) sorted by path

1234

/PHP-7.4/
H A D.gdbinit149 dumps the current execution stack. usage: dump_bt executor_globals.current_execute_data
H A DNEWS1046 . Fixed bug #79371 (mb_strtolower (UTF-32LE): stack-buffer-overflow at
1731 . Fixed bug #78752 (Segfault if GC triggered while generator stack frame is
2105 . Implemented FR #72777 (Implement regex stack limits for mbregex functions).
H A DUPGRADING360 intended to prevent stack overflows. The default depth limit is 4096 and
709 . New INI directive to include or exclude arguments from stack traces
/PHP-7.4/Zend/tests/assert/
H A Dexpect_009.phpt2 test stack trace is correct from failed exception in extended class
H A Dexpect_010.phpt2 test stack trace is correct from failed exception in extended class (parent implementing constructo…
/PHP-7.4/Zend/tests/
H A Dbug36214.phpt6 public $stack = array();
9 $this->stack[$name] = $var;return;
13 return $this->stack[$name];
H A Dbug71474.phpt2 Bug #71474: Crash because of VM stack corruption on Magento2
H A Dbug77345_gc_1.phpt2 Bug #77345 (Segmentation faults stack overflow in cyclic garbage collector) (Bug #77427)
H A Dbug77345_gc_2.phpt2 Bug #77345 (Segmentation faults stack overflow in cyclic garbage collector) (Bug #77427)
H A Dbug78502.phpt2 Bug #78502: Incorrect stack size calculation for indirectly recursive function call
H A Dbug78752.phpt2 Bug #78752: Segfault if GC triggered while generator stack frame is being destroyed
/PHP-7.4/Zend/tests/generators/
H A Dbacktrace.phpt2 Printing the stack trace in a generator
/PHP-7.4/Zend/
H A Dzend.c1245 #define SAVE_STACK(stack) do { \ argument
1246 if (CG(stack).top) { \
1247 memcpy(&stack, &CG(stack), sizeof(zend_stack)); \
1248 CG(stack).top = CG(stack).max = 0; \
1249 CG(stack).elements = NULL; \
1251 stack.top = 0; \
1255 #define RESTORE_STACK(stack) do { \ argument
1256 if (stack.top) { \
1257 zend_stack_destroy(&CG(stack)); \
1258 memcpy(&CG(stack), &stack, sizeof(zend_stack)); \
H A Dzend_execute.c213 zend_vm_stack stack = EG(vm_stack); in zend_vm_stack_destroy() local
215 while (stack != NULL) { in zend_vm_stack_destroy()
216 zend_vm_stack p = stack->prev; in zend_vm_stack_destroy()
217 efree(stack); in zend_vm_stack_destroy()
218 stack = p; in zend_vm_stack_destroy()
224 zend_vm_stack stack; in zend_vm_stack_extend() local
227 stack = EG(vm_stack); in zend_vm_stack_extend()
228 stack->top = EG(vm_stack_top); in zend_vm_stack_extend()
232 stack); in zend_vm_stack_extend()
233 ptr = stack->top; in zend_vm_stack_extend()
[all …]
H A Dzend_execute.h160 #define ZEND_VM_STACK_ELEMENTS(stack) \ argument
161 (((zval*)(stack)) + ZEND_VM_STACK_HEADER_SLOTS)
171 …fine ZEND_ASSERT_VM_STACK(stack) ZEND_ASSERT(stack->top > (zval *) stack && stack->end > (zval *) argument
174 # define ZEND_ASSERT_VM_STACK(stack) argument
H A Dzend_gc.c288 return stack->next; in gc_stack_next()
294 (*stack) = gc_stack_next(*stack); in gc_stack_push()
306 (*stack) = (*stack)->prev; in gc_stack_pop()
320 stack = p->next; in gc_stack_free()
322 p = stack; in gc_stack_free()
696 GC_STACK_DCL(stack); in gc_scan_black()
814 GC_STACK_DCL(stack); in gc_mark_grey()
989 GC_STACK_DCL(stack); in gc_scan()
1438 gc_stack stack; in zend_gc_collect_cycles() local
1440 stack.prev = NULL; in zend_gc_collect_cycles()
[all …]
H A Dzend_generators.c60 zval *stack; in zend_generator_freeze_call_stack() local
70 stack = emalloc(used_stack * sizeof(zval)); in zend_generator_freeze_call_stack()
77 new_call = (zend_execute_data*)(stack + used_stack - frame_size); in zend_generator_freeze_call_stack()
89 ZEND_ASSERT(prev_call == (zend_execute_data*)stack); in zend_generator_freeze_call_stack()
H A Dzend_ptr_stack.c26 stack->top_element = stack->elements = NULL; in zend_ptr_stack_init_ex()
27 stack->top = stack->max = 0; in zend_ptr_stack_init_ex()
47 stack->top++; in zend_ptr_stack_n_push()
64 stack->top--; in zend_ptr_stack_n_pop()
75 pefree(stack->elements, stack->persistent); in zend_ptr_stack_destroy()
82 int i = stack->top; in zend_ptr_stack_apply()
103 int i = stack->top; in zend_ptr_stack_clean()
106 pefree(stack->elements[i], stack->persistent); in zend_ptr_stack_clean()
109 stack->top = 0; in zend_ptr_stack_clean()
110 stack->top_element = stack->elements; in zend_ptr_stack_clean()
[all …]
H A Dzend_ptr_stack.h46 if (stack->top+count > stack->max) { \ in END_EXTERN_C()
50 } while (stack->top+count > stack->max); \ in END_EXTERN_C()
51stack->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;
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()
109 stack->top--; in zend_ptr_stack_pop()
[all …]
H A Dzend_stack.c23 #define ZEND_STACK_ELEMENT(stack, n) ((void *)((char *) (stack)->elements + (stack)->size * (n))) argument
27 stack->size = size; in zend_stack_init()
28 stack->top = 0; in zend_stack_init()
29 stack->max = 0; in zend_stack_init()
37 if (stack->top >= stack->max) { in zend_stack_push()
39 stack->elements = safe_erealloc(stack->elements, stack->size, stack->max, 0); in zend_stack_push()
41 memcpy(ZEND_STACK_ELEMENT(stack, stack->top), element, stack->size); in zend_stack_push()
49 return ZEND_STACK_ELEMENT(stack, stack->top - 1); in zend_stack_top()
58 --stack->top; in zend_stack_del_top()
99 return stack->top; in zend_stack_count()
[all …]
H A Dzend_stack.h32 ZEND_API int zend_stack_init(zend_stack *stack, int size);
33 ZEND_API int zend_stack_push(zend_stack *stack, const void *element);
34 ZEND_API void *zend_stack_top(const zend_stack *stack);
35 ZEND_API int zend_stack_del_top(zend_stack *stack);
36 ZEND_API int zend_stack_int_top(const zend_stack *stack);
37 ZEND_API int zend_stack_is_empty(const zend_stack *stack);
38 ZEND_API int zend_stack_destroy(zend_stack *stack);
39 ZEND_API void *zend_stack_base(const zend_stack *stack);
40 ZEND_API int zend_stack_count(const zend_stack *stack);
41 ZEND_API void zend_stack_apply(zend_stack *stack, int type, int (*apply_function)(void *element));
[all …]
/PHP-7.4/docs/
H A Dparameter-parsing-api.md52 reading the arguments from the stack, it receives a single zval to convert
/PHP-7.4/ext/com_dotnet/tests/
H A Dbug73679.phpt11 $stack = new DOTNET("mscorlib", "System.Collections.Stack", -2200000000);
12 $stack->Push(".Net");
13 $stack->Push("Hello ");
14 echo $stack->Pop() . $stack->Pop();
/PHP-7.4/ext/fileinfo/tests/
H A Dmagic7574 # From: Serge van den Boom <svdb@stack.nl>
13103 # byte 7: highest byte of the kernel stack pointer, always 0xfe
14473 # I think the 500 series was the old stack-based machines, running a
18939 >0 string STAK HyperCard stack
29886 >0x1e leshort &0x8 fixed-stack
H A Dmagic私はガラスを食べられます7574 # From: Serge van den Boom <svdb@stack.nl>
13103 # byte 7: highest byte of the kernel stack pointer, always 0xfe
14473 # I think the 500 series was the old stack-based machines, running a
18939 >0 string STAK HyperCard stack
29886 >0x1e leshort &0x8 fixed-stack

Completed in 147 milliseconds

1234