diff options
author | Sebastian Bergmann <sebastian@php.net> | 2003-03-07 11:51:19 +0000 |
---|---|---|
committer | Sebastian Bergmann <sebastian@php.net> | 2003-03-07 11:51:19 +0000 |
commit | ba18cd1a45bd969340e39a2676a1d92bc8fde17e (patch) | |
tree | ad2b4dca99d0a553472d9b18dd1b0b1aa1ca6348 | |
parent | 55826fbeb543001a6ef0a75fa8398e26fadd24ac (diff) | |
download | php-git-ba18cd1a45bd969340e39a2676a1d92bc8fde17e.tar.gz |
Document 'final'.
-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 |