From 6c9fa8b66584124acf86be723f17aa28bfdb35ba Mon Sep 17 00:00:00 2001 From: Philip Olson Date: Thu, 20 May 2010 22:30:34 +0000 Subject: [PATCH] Added an OOP Changelog git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@299539 c90b9560-bf6c-de11-be94-00142212c4b1 --- language/oop5.xml | 1 + language/oop5/changelog.xml | 138 ++++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100644 language/oop5/changelog.xml diff --git a/language/oop5.xml b/language/oop5.xml index 1153c9baf9..4a171831b4 100644 --- a/language/oop5.xml +++ b/language/oop5.xml @@ -51,6 +51,7 @@ &language.oop5.late-static-bindings; &language.oop5.references; &language.oop5.serialization; + &language.oop5.changelog; + + OOP Changelog + + Changes to the PHP 5 OOP model are logged here. Descriptions and other notes regarding + these features are documented within the OOP 5 documentation. + + + + + + + &Version; + &Description; + + + + + 5.3.0 + + Changed: It's now possible to reference the class using a variable (e.g, + echo $classname::constant;). + The variable's value can not be a keyword (e.g. self, + parent or static). + + + + 5.3.0 + + Changed: An E_WARNING level error is issued if + the magic overloading + methods are declared static. + It also enforces the public visibility requirement. + + + + 5.3.0 + + Changed: Prior to 5.3.0, exceptions thrown in the + __autoload function could not be + caught in the catch block, and + would result in a fatal error. Exceptions now thrown in the __autoload function + can be caught in the catch block, with + one proviso. If throwing a custom exception, then the custom exception class must + be available. The __autoload function may be used recursively to autoload the + custom exception class. + + + + 5.3.0 + + Added: The __callStatic method. + + + + 5.3.0 + + Added: heredoc + and nowdoc + support for class const and property definitions. + Note: heredoc values must follow the same rules as double-quoted strings, + (e.g., no variables within). + + + + 5.3.0 + + Added: Late Static Binding. + + + + 5.3.0 + + Added: The __invoke method. + + + + 5.2.0 + + Changed: The __toString + method was only called when it was directly combined with + echo or print. + But now, it is called in any string context (e.g. in + printf with %s modifier) but not + in other types contexts (e.g. with %d modifier). + Since PHP 5.2.0, converting objects without a __toString + method to string emits a E_RECOVERABLE_ERROR level error. + + + + 5.1.3 + + Changed: In previous versions of PHP 5, the use of var + was considered deprecated and would issue an E_STRICT + level error. It's no longer deprecated, therefore does not emit the error. + + + + 5.1.0 + + Changed: The __set_state static + method is now called for classes exported by var_export. + + + + 5.1.0 + + Added: The __isset + and __unset methods. + + + + + + + + +