From: Bob Weinand Date: Tue, 14 Jul 2015 00:52:09 +0000 (+0200) Subject: Closures only have {closure}() as method name X-Git-Tag: php-7.1.1RC1~35^2~6^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bce9368dfbd2b11258601604a44e2145c9bb2d86;p=php Closures only have {closure}() as method name Prefixing a class name does not make sense as they may be rebound to another scope, where this will be confusing --- diff --git a/Zend/tests/closure_033.phpt b/Zend/tests/closure_033.phpt index d92716aacc..c83a53898d 100644 --- a/Zend/tests/closure_033.phpt +++ b/Zend/tests/closure_033.phpt @@ -23,7 +23,7 @@ $o->func(); ?> ===DONE=== --EXPECTF-- -Test::{closure}() +{closure}() Fatal error: Uncaught Error: Call to private method Test::func() from context '' in %sclosure_033.php:%d Stack trace: