diff options
-rw-r--r-- | Zend/ZEND_CHANGES | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/Zend/ZEND_CHANGES b/Zend/ZEND_CHANGES index a983c33f38..dc1aa23a90 100644 --- a/Zend/ZEND_CHANGES +++ b/Zend/ZEND_CHANGES @@ -205,6 +205,25 @@ Changes in the Zend Engine 2.0 This syntax only applies to objects/classes, not built-in types. + * final. + + The Zend Engine 2.0 introduces the "final" keyword to declare + final members and methods. Those cannot be overridden by + sub-classes. + + Example: + + <?php + class Foo { + final function bar() { + // ... + } + } + ?> + + Old code that has no user-defined classes or functions named + 'final' should run without modifications. + * Object Cloning. The Zend Engine 1.0 offered no way a user could decide what copy |