summaryrefslogtreecommitdiff
path: root/Zend/tests/closure_call.phpt
Commit message (Collapse)AuthorAgeFilesLines
* Normalize rebinding failuresNikita Popov2015-10-101-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 Stogov2015-10-061-1/+4
| | | | This reverts commit 35d0405c4790f0ce668c9e1b8b05197e55d29a05.
* Allow random $this on non-internal Closures againBob Weinand2015-10-051-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 classesStanislav Malyshev2015-05-121-4/+6
|
* Don't allow unbound scoped closures; make ->call used passed object as scopeAndrea Faulds2014-08-171-1/+18
|
* Rename ::apply to ::call for the sake of JS consistencyAndrea Faulds2014-07-301-0/+48