#44822 [NEW]: Interface documentation does not say interfaces can be extended
From: kalle@php.net
Operating system: Irrelevant
PHP version: Irrelevant
PHP Bug Type: Documentation problem
Bug description: Interface documentation does not say interfaces can be extended
Description:
------------
The documentation does not say that interfaces can be extended, see the
example code below for an example.
An error is being throwed because the secondary interface declares baz()
Reproduce code:
---------------
interface a
{
public function foo();
}
interface b extends a
{
public function baz(Baz $baz);
}
class c implements b
{
public function foo()
{
}
public function baz(Foo $foo)
{
}
}
--
Edit bug report at http://bugs.php.net/?id=44822&edit=1
--
Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44822&r=trysnapshot52
Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44822&r=trysnapshot53
Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44822&r=trysnapshot60
Fixed in CVS: http://bugs.php.net/fix.php?id=44822&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=44822&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=44822&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=44822&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=44822&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=44822&r=support
Expected behavior: http://bugs.php.net/fix.php?id=44822&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=44822&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=44822&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=44822&r=globals
PHP 4 support discontinued: http://bugs.php.net/fix.php?id=44822&r=php4
Daylight Savings: http://bugs.php.net/fix.php?id=44822&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=44822&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=44822&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=44822&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=44822&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=44822&r=mysqlcfg
Thread (4 messages)
- kalle@php.net