note 71577 added to language.oop5.interfaces
| From: | bacher<at>bash<minus>it" de | Date: | Wed, 06 Dec 2006 16:14:54 +0000 |
| Subject: | note 71577 added to language.oop5.interfaces | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120342@lists.php.net to get a copy of this message | ||
A Problem that i run in while using interfaces, consider the following code:
<?php
interface i {}
class a implements i {}
class b extends a {}
?>
will work. But using
<?php
class b extends a {}
interface i {}
class a implements i {}
?>
will end up in the following error:
Fatal error: Class 'a' not found in /r1/people/joshua_bacher/src/prj/test/test.php on line
2
PHP 5.1.2 (cli) (built: Nov 2 2006 12:29:42)
Copyright (c) 1997-2006 The PHP Group
Zend Engine v2.1.0, Copyright (c) 1998-2006 Zend Technologies
I don't know if other php versions are affected by this.
If you leave out the interfaces the examples will also work. so i think it is a bug on Interfaces.
cheers josh
----
Server IP: 66.163.161.117
Probable Submitter: 194.94.96.194
----
Manual Page -- http://www.php.net/manual/en/language.oop5.interfaces.php
Edit -- https://master.php.net/note/edit/71577
Del: integrated -- https://master.php.net/note/delete/71577/integrated
Del: useless -- https://master.php.net/note/delete/71577/useless
Del: bad code -- https://master.php.net/note/delete/71577/bad+code
Del: spam -- https://master.php.net/note/delete/71577/spam
Del: non-english -- https://master.php.net/note/delete/71577/non-english
Del: in docs -- https://master.php.net/note/delete/71577/in+docs
Del: other reasons-- https://master.php.net/note/delete/71577
Reject -- https://master.php.net/note/reject/71577
Search -- https://master.php.net/manage/user-notes.php