From: Bob Weinand Date: Mon, 25 May 2015 21:07:37 +0000 (+0200) Subject: Add class to semi_reserved tests X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~32^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8cd62071abc3defd8d5f9a2dc3a788d8692af3c0;p=php Add class to semi_reserved tests --- diff --git a/NEWS b/NEWS index e2e0bf4b75..6ae7dc1a2a 100644 --- 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) diff --git a/Zend/tests/grammar/semi_reserved_001.phpt b/Zend/tests/grammar/semi_reserved_001.phpt index aa40249de8..c6bfd46611 100644 --- a/Zend/tests/grammar/semi_reserved_001.phpt +++ b/Zend/tests/grammar/semi_reserved_001.phpt @@ -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 diff --git a/Zend/tests/grammar/semi_reserved_002.phpt b/Zend/tests/grammar/semi_reserved_002.phpt index 924e82aac1..b2c20028ca 100644 --- a/Zend/tests/grammar/semi_reserved_002.phpt +++ b/Zend/tests/grammar/semi_reserved_002.phpt @@ -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