]> granicus.if.org Git - php/commitdiff
Add list of reserved classes to UPGRADING
authorNikita Popov <nikic@php.net>
Wed, 15 Apr 2015 20:37:51 +0000 (22:37 +0200)
committerNikita Popov <nikic@php.net>
Wed, 15 Apr 2015 20:38:50 +0000 (22:38 +0200)
UPGRADING

index 8cd1cdea55cf5ffb8d0e0b4cab1b940820bd2fe7..1722b72a379987c743be76262fb4aec016c1805a 100644 (file)
--- 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