]> granicus.if.org Git - php/commit
Fix bad run_time_cache with Closure::call()
authorBob Weinand <bobwei9@hotmail.com>
Sun, 21 Jun 2015 14:39:28 +0000 (16:39 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Sun, 21 Jun 2015 14:39:44 +0000 (16:39 +0200)
commit3c288b12b45763b3215ee0463e51f8be9d643425
tree4937773981da14cf270cf7fca06a59ae42951642
parentf3df3df8737ace9f4431416fdd0d312cb0ee9cfd
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)
Zend/tests/closure_060.phpt [new file with mode: 0644]
Zend/zend_closures.c
Zend/zend_compile.h