diff options
author | Dmitry Stogov <dmitry@zend.com> | 2015-10-06 23:48:10 +0300 |
---|---|---|
committer | Dmitry Stogov <dmitry@zend.com> | 2015-10-06 23:48:10 +0300 |
commit | 524d00e005dd730454709060e30b43d97c3a06c6 (patch) | |
tree | 87a4b572ee69168325a103b68e268bdba7784468 /Zend/tests/closure_call.phpt | |
parent | 3c0348056a085395b045bf9dc65d26c7da503488 (diff) | |
download | php-git-524d00e005dd730454709060e30b43d97c3a06c6.tar.gz |
Revert "Allow random $this on non-internal Closures again"
This reverts commit 35d0405c4790f0ce668c9e1b8b05197e55d29a05.
Diffstat (limited to 'Zend/tests/closure_call.phpt')
-rw-r--r-- | Zend/tests/closure_call.phpt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Zend/tests/closure_call.phpt b/Zend/tests/closure_call.phpt index ecaa12eb40..e8bed36aec 100644 --- a/Zend/tests/closure_call.phpt +++ b/Zend/tests/closure_call.phpt @@ -36,6 +36,7 @@ $elePHPant->x = 7; // Try on a StdClass var_dump($bar->call($elePHPant)); + $beta = function ($z) { return $this->x * $z; }; @@ -59,6 +60,8 @@ $foo->call(new FooBar); int(0) int(0) int(3) -int(7) + +Warning: Cannot bind closure to object of internal class stdClass in %s line %d +NULL int(21) int(3) |