diff options
author | Marcus Boerger <helly@php.net> | 2004-02-11 22:38:05 +0000 |
---|---|---|
committer | Marcus Boerger <helly@php.net> | 2004-02-11 22:38:05 +0000 |
commit | 4256448a5fce166e55e37f9eb782f926cb2e3895 (patch) | |
tree | 4a35b5a002fab1e9f63221d83a464cc70f4b7935 | |
parent | c6cbafa273e69cbc7c2c2a2f6f53f5d15c815ab9 (diff) | |
download | php-git-4256448a5fce166e55e37f9eb782f926cb2e3895.tar.gz |
Update
-rw-r--r-- | Zend/ZEND_CHANGES | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Zend/ZEND_CHANGES b/Zend/ZEND_CHANGES index 579a787a04..2402033862 100644 --- a/Zend/ZEND_CHANGES +++ b/Zend/ZEND_CHANGES @@ -184,6 +184,38 @@ Changes in the Zend Engine 2.0 Old code that has no user-defined classes or functions named 'interface' or 'implements' should run without modifications. + + An interface may extend one or more base interfaces (but not + implement them). Neither a class nor an interface can inherit + methods of the same name from different root interfaces. + + Example: + + <?php + interface Printable { + function dump(); + } + + interface Streamable { + function writeToStream(); + static function readFromStream(); + } + + class PrintableExample implements Printable, Streamable { + public function dump() { + // ... + } + function writeToStream() { + // ... + } + static function readFromStream() { + // ... + } + } + ?> + + A class that does not implement all interface methods must be + declared as an abstract class. * Class Type Hints. |