com php-src: 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: Zend/tests/closure_033. phpt
| From: | Bob Weinand | Date: | Tue, 14 Jul 2015 00:52:09 +0000 |
| Subject: | com php-src: 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: Zend/tests/closure_033. phpt |
||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-87978@lists.php.net to get a copy of this message | ||
Commit: bce9368dfbd2b11258601604a44e2145c9bb2d86
Author: Bob Weinand <bobwei9@hotmail.com> Tue, 14 Jul 2015 02:52:09 +0200
Parents: 1003d01f3aa65e1e63a248bc67c2f36538561b35
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=bce9368dfbd2b11258601604a44e2145c9bb2d86
Log:
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
Changed paths:
M Zend/tests/closure_033.phpt
Diff:
diff --git a/Zend/tests/closure_033.phpt b/Zend/tests/closure_033.phpt
index d92716a..c83a538 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: