Link Here
|
1 |
--- phalcon.zep.c.orig 2016-11-26 21:03:16 UTC |
1 |
--- phalcon.zep.c.orig 2017-04-05 21:26:32 UTC |
2 |
+++ phalcon.zep.c |
2 |
+++ phalcon.zep.c |
3 |
@@ -2114,8 +2114,8 @@ static int ZEPHIR_FASTCALL zephir_memory |
3 |
@@ -2117,8 +2117,8 @@ static int ZEPHIR_FASTCALL zephir_memory |
4 |
#define ZEPHIR_MM_RESTORE() zephir_memory_restore_stack(NULL) |
4 |
#define ZEPHIR_MM_RESTORE() zephir_memory_restore_stack(NULL) |
5 |
|
5 |
|
6 |
#else |
6 |
#else |
Link Here
|
11 |
|
11 |
|
12 |
#define ZEPHIR_MM_GROW() zephir_memory_grow_stack() |
12 |
#define ZEPHIR_MM_GROW() zephir_memory_grow_stack() |
13 |
#define ZEPHIR_MM_RESTORE() zephir_memory_restore_stack() |
13 |
#define ZEPHIR_MM_RESTORE() zephir_memory_restore_stack() |
14 |
@@ -4212,7 +4212,7 @@ static void ZEPHIR_FASTCALL zephir_memor |
14 |
@@ -2131,7 +2131,7 @@ static int ZEPHIR_FASTCALL zephir_memory |
|
|
15 |
static void ZEPHIR_FASTCALL zephir_memory_observe(zval *var); |
16 |
static void ZEPHIR_FASTCALL zephir_memory_alloc(zval *var); |
17 |
|
18 |
-static int ZEPHIR_FASTCALL zephir_clean_restore_stack(); |
19 |
+static int zephir_clean_restore_stack(); |
20 |
|
21 |
#define zephir_safe_zval_ptr_dtor(pzval) |
22 |
|
23 |
@@ -4240,7 +4240,7 @@ static void ZEPHIR_FASTCALL zephir_memor |
15 |
|
24 |
|
16 |
#else |
25 |
#else |
17 |
|
26 |
|
Link Here
|
20 |
{ |
29 |
{ |
21 |
zend_zephir_globals_def *g = ZEPHIR_VGLOBAL; |
30 |
zend_zephir_globals_def *g = ZEPHIR_VGLOBAL; |
22 |
if (g->start_memory == NULL) { |
31 |
if (g->start_memory == NULL) { |
23 |
@@ -4221,7 +4221,7 @@ static void ZEPHIR_FASTCALL zephir_memor |
32 |
@@ -4249,7 +4249,7 @@ static void ZEPHIR_FASTCALL zephir_memor |
24 |
zephir_memory_grow_stack_common(g); |
33 |
zephir_memory_grow_stack_common(g); |
25 |
} |
34 |
} |
26 |
|
35 |
|
Link Here
|
29 |
{ |
38 |
{ |
30 |
zephir_memory_restore_stack_common(ZEPHIR_VGLOBAL); |
39 |
zephir_memory_restore_stack_common(ZEPHIR_VGLOBAL); |
31 |
return SUCCESS; |
40 |
return SUCCESS; |
|
|
41 |
@@ -4496,8 +4496,8 @@ static void ZEPHIR_FASTCALL zephir_memor |
42 |
ZVAL_NULL(var); |
43 |
} |
44 |
|
45 |
-static int ZEPHIR_FASTCALL zephir_clean_restore_stack() { |
46 |
- |
47 |
+static int zephir_clean_restore_stack() |
48 |
+{ |
49 |
zend_zephir_globals_def *zephir_globals_ptr = ZEPHIR_VGLOBAL; |
50 |
|
51 |
while (zephir_globals_ptr->active_memory != NULL) { |