]> granicus.if.org Git - php/commitdiff
Add class to semi_reserved tests
authorBob Weinand <bobwei9@hotmail.com>
Mon, 25 May 2015 21:07:37 +0000 (23:07 +0200)
committerBob Weinand <bobwei9@hotmail.com>
Mon, 25 May 2015 21:07:37 +0000 (23:07 +0200)
NEWS
Zend/tests/grammar/semi_reserved_001.phpt
Zend/tests/grammar/semi_reserved_002.phpt

diff --git a/NEWS b/NEWS
index e2e0bf4b7525453a24358c6cc6cc57e23a36d334..6ae7dc1a2a831e0685a4a3212f7501adf5c76540 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -78,7 +78,7 @@
   . Implemented the RFC `Fix "foreach" behavior`. (Dmitry)
   . Implemented the RFC `Generator Delegation`. (Bob)
   . Implemented the RFC `Anonymous Class Support`. (Joe, Nikita, Dmitry)
-  . Implemented the RFC `Context Sensitive Lexer`. (Marc Almada)
+  . Implemented the RFC `Context Sensitive Lexer`. (Marcio Almada)
   . Fixed bug #69511 (Off-by-one buffer overflow in php_sys_readlink).
     (Jan Starke, Anatol)
 
index aa40249de85908502bed4949305c092ac0629589..c6bfd46611a494435b1ebfe7aa40173ca68e6b96 100644 (file)
@@ -68,6 +68,7 @@ class Obj
     function static(){ echo __METHOD__, PHP_EOL; }
     function abstract(){ echo __METHOD__, PHP_EOL; }
     function final(){ echo __METHOD__, PHP_EOL; }
+    function class(){ echo __METHOD__, PHP_EOL; }
 }
 
 $obj = new Obj;
@@ -135,6 +136,7 @@ $obj->private();
 $obj->static();
 $obj->abstract();
 $obj->final();
+$obj->class();
 
 echo "\nDone\n";
 
@@ -202,5 +204,6 @@ Obj::private
 Obj::static
 Obj::abstract
 Obj::final
+Obj::class
 
 Done
index 924e82aac1b2584a435edeb3b3387266819818b8..b2c20028cae89d40f7167f6463e90ba12656c7e2 100644 (file)
@@ -68,6 +68,7 @@ class Obj
     static function static(){ echo __METHOD__, PHP_EOL; }
     static function abstract(){ echo __METHOD__, PHP_EOL; }
     static function final(){ echo __METHOD__, PHP_EOL; }
+    static function class(){ echo __METHOD__, PHP_EOL; }
 }
 
 Obj::empty();
@@ -133,6 +134,7 @@ Obj::private();
 Obj::static();
 Obj::abstract();
 Obj::final();
+Obj::class();
 
 echo "\nDone\n";
 
@@ -200,5 +202,6 @@ Obj::private
 Obj::static
 Obj::abstract
 Obj::final
+Obj::class
 
 Done