From: Sebastian Bergmann Date: Fri, 7 Mar 2003 11:51:19 +0000 (+0000) Subject: Document 'final'. X-Git-Tag: RELEASE_0_5~566 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=ba18cd1a45bd969340e39a2676a1d92bc8fde17e;p=php Document 'final'. --- 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: + + + + 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