Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Normalize rebinding failures | Nikita Popov | 2015-10-10 | 1 | -1/+1 |
| | | | | | | | Move all rebinding checks into one function to make sure they stay in sync. Normalize return value to be NULL for all rebinding failures, instead of returning an improperly bound closure in some cases. | ||||
* | Revert "Allow random $this on non-internal Closures again" | Dmitry Stogov | 2015-10-06 | 1 | -1/+4 |
| | | | | This reverts commit 35d0405c4790f0ce668c9e1b8b05197e55d29a05. | ||||
* | Allow random $this on non-internal Closures again | Bob Weinand | 2015-10-05 | 1 | -4/+1 |
| | | | | | | | | | | 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()); | ||||
* | Ban rebinding closures to different internal classes | Stanislav Malyshev | 2015-05-12 | 1 | -4/+6 |
| | |||||
* | Don't allow unbound scoped closures; make ->call used passed object as scope | Andrea Faulds | 2014-08-17 | 1 | -1/+18 |
| | |||||
* | Rename ::apply to ::call for the sake of JS consistency | Andrea Faulds | 2014-07-30 | 1 | -0/+48 |