Bug #67848 [NEW]: Problem at create new instance of class
| From: | eduardbader at gmail dot com | Date: | Fri, 15 Aug 2014 14:19:29 +0000 |
| Subject: | Bug #67848 [NEW]: Problem at create new instance of class | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-187140@lists.php.net to get a copy of this message | ||
From: eduardbader at gmail dot com
Operating system: debian 7.5 (wheezy)
PHP version: Irrelevant
Package: Class/Object related
Bug Type: Bug
Bug description:Problem at create new instance of class
Description:
------------
---
From manual page: http://www.php.net/language.oop5.interfaces
---
Fatal error when class defined before parent class. The parent class
should implement an interface.
Test script:
---------------
<?php
interface FooInterface {}
class DoesNotWorksOnTopOfFile extends Bar {}
class Bar implements FooInterface{}
class WorksOnBottom extends Bar {}
Expected result:
----------------
no errors expected
Actual result:
--------------
Class 'Bar' not found in /tmp/Bar.php on line 4
--
Edit bug report at https://bugs.php.net/bug.php?id=67848&edit=1
--