diff options
| author | Bob Weinand <bobwei9@hotmail.com> | 2015-10-05 17:49:32 +0200 |
|---|---|---|
| committer | Bob Weinand <bobwei9@hotmail.com> | 2015-10-05 17:49:32 +0200 |
| commit | 35d0405c4790f0ce668c9e1b8b05197e55d29a05 (patch) | |
| tree | fcb9d5fe2e447ba17f3ff81b19baaa989b2bf38c /Zend/zend_compile.c | |
| parent | a6be0f3fd6cdd59ac00ecd76630c6c04fee03417 (diff) | |
| download | php-git-35d0405c4790f0ce668c9e1b8b05197e55d29a05.tar.gz | |
Allow random $this on non-internal Closures again
As it turns out, there is actually no reason to prevent this, it even was a bigger BC break than expected...
Also fixes a memory leak (the Closure leaks) when calling internal functions via Closure by moving it out of leave helper onto caller side for TOP_CODE:
$z = new SplStack; $z->push(20);
$x = (new ReflectionMethod("SplStack", "pop"))->getClosure($z);
var_dump($x());
Diffstat (limited to 'Zend/zend_compile.c')
0 files changed, 0 insertions, 0 deletions
