diff options
author | Bob Weinand <bobwei9@hotmail.com> | 2015-06-21 16:39:28 +0200 |
---|---|---|
committer | Bob Weinand <bobwei9@hotmail.com> | 2015-06-21 16:39:44 +0200 |
commit | 3c288b12b45763b3215ee0463e51f8be9d643425 (patch) | |
tree | 4937773981da14cf270cf7fca06a59ae42951642 /Zend/zend_compile.h | |
parent | f3df3df8737ace9f4431416fdd0d312cb0ee9cfd (diff) | |
download | php-git-3c288b12b45763b3215ee0463e51f8be9d643425.tar.gz |
Fix bad run_time_cache with Closure::call()
This also fixes a memory "leak" (memory is allocated on unbounded arena without limits) on each new Closure instantiation.
Closures with same scope now all share the same run_time_cache (as long as it is arena allocated)
Diffstat (limited to 'Zend/zend_compile.h')
-rw-r--r-- | Zend/zend_compile.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Zend/zend_compile.h b/Zend/zend_compile.h index 106d0fc475..f1f7195494 100644 --- a/Zend/zend_compile.h +++ b/Zend/zend_compile.h @@ -240,6 +240,8 @@ typedef struct _zend_try_catch_element { #define ZEND_ACC_CLOSURE 0x100000 #define ZEND_ACC_GENERATOR 0x800000 +#define ZEND_ACC_NO_RT_ARENA 0x10000 + /* call through user function trampoline. e.g. __call, __callstatic */ #define ZEND_ACC_CALL_VIA_TRAMPOLINE 0x200000 |