summaryrefslogtreecommitdiff
path: root/Zend
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2010-02-02 12:32:29 (GMT)
committerDmitry Stogov <dmitry@php.net>2010-02-02 12:32:29 (GMT)
commit694a72c5afbac78bc13b3cfde7c1cfd2c1fc9f68 (patch)
tree670ff0baaf49ef02c60d5ed578ef69728fc6ad21 /Zend
parent191b52d2723d82a8aa623af471f1dbfab6a5ce3f (diff)
downloadphp-694a72c5afbac78bc13b3cfde7c1cfd2c1fc9f68.tar.gz
Fixed bug #50723 (Bug in garbage collector causes crash)
Diffstat (limited to 'Zend')
-rw-r--r--Zend/zend_execute.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/Zend/zend_execute.h b/Zend/zend_execute.h
index dcbe93a..be493ca 100644
--- a/Zend/zend_execute.h
+++ b/Zend/zend_execute.h
@@ -228,7 +228,7 @@ static inline void *zend_vm_stack_alloc(size_t size TSRMLS_DC)
int extra = (ZEND_MM_ALIGNMENT - ((zend_uintptr_t)EG(argument_stack)->top & (ZEND_MM_ALIGNMENT - 1))) / sizeof(void*);
if (UNEXPECTED(size + extra + ZEND_MM_ALIGNED_SIZE(sizeof(void*)) / sizeof(void*) >
- (zend_uintptr_t)EG(argument_stack)->end - (zend_uintptr_t)EG(argument_stack)->top)) {
+ (zend_uintptr_t)(EG(argument_stack)->end - EG(argument_stack)->top))) {
zend_vm_stack_extend(size TSRMLS_CC);
} else {
void **old_top = EG(argument_stack)->top;