com php-src: Add list of reserved classes to UPGRADING: UPGRADING
| From: | Nikita Popov | Date: | Wed, 15 Apr 2015 20:38:50 +0000 |
| Subject: | com php-src: Add list of reserved classes to UPGRADING: UPGRADING | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-86322@lists.php.net to get a copy of this message | ||
Commit: 685ccd61c2f53b5c629d7d11346e37723a948972
Author: Nikita Popov <nikic@php.net> Wed, 15 Apr 2015 22:37:51 +0200
Parents: 5c214fc10ddc640549b0a703a4bf9a8f38f2d8a2
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=685ccd61c2f53b5c629d7d11346e37723a948972
Log:
Add list of reserved classes to UPGRADING
Changed paths:
M UPGRADING
Diff:
diff --git a/UPGRADING b/UPGRADING
index 8cd1cde..1722b72 100644
--- a/UPGRADING
+++ b/UPGRADING
@@ -375,6 +375,28 @@ Other language changes
Note that this only applies to calls from an incompatible context. If class B
extended from A the call would be allowed without any notices.
+* It is no longer possible to use the following class, interface and trait names
+ (case-insensitive):
+
+ bool
+ int
+ float
+ string
+ null
+ false
+ true
+
+ This applies to class/interface/trait declarations, class_alias() and use
+ statements.
+
+ Furthermore the following class, interface and trait names are now reserved
+ for future use, but do not yet throw an error when used:
+
+ resource
+ object
+ mixed
+ numeric
+
* The yield language construct no longer requires parentheses when used in an
expression context. It is now a right-associative operator with precedence
between the "print" and "=>" operators. This can result in different
behavior