note 71577 deleted from language.oop5.interfaces by nlopess
| From: | nlopess@php.net | Date: | Thu, 07 Dec 2006 18:08:39 +0000 |
| Subject: | note 71577 deleted from language.oop5.interfaces by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-120388@lists.php.net to get a copy of this message | ||
Note Submitter: bacher <at> bash <minus> it <dot> de
----
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