From: Sebastian Bergmann Date: Thu, 10 Apr 2003 16:54:46 +0000 (+0000) Subject: Document 'const' keyword. X-Git-Tag: RELEASE_0_5~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=668fc20b97b935419f0e419472ae8b8669ee6969;p=php Document 'const' keyword. --- diff --git a/Zend/ZEND_CHANGES b/Zend/ZEND_CHANGES index 371bd67aa0..18ed6c6421 100644 --- a/Zend/ZEND_CHANGES +++ b/Zend/ZEND_CHANGES @@ -426,6 +426,34 @@ Changes in the Zend Engine 2.0 one would have to explicitly call parent::__destruct() in the destructor body. + * Constants. + + The Zend Engine 2.0 introduces per-class and per-namespace + constants. + + Example: + + + + The Zend Engine 2.0 allows for expressions within constants: + + + + Old code that has no user-defined classes or functions + named 'const' will run without modifications. + * Exceptions. The Zend Engine 1.0 had no exception handling. The Zend Engine 2.0 @@ -464,8 +492,8 @@ Changes in the Zend Engine 2.0 } ?> - Old code that has no user-defined functions 'catch', 'throw' and - 'try' will run without modifications. + Old code that has no user-defined classes or functions 'catch', + 'throw' and 'try' will run without modifications. * Dereferencing objects returned from functions.