#46502 [Opn->Bgs]: Instanciate class that inherits from an abstract one
| From: | johannes@php.net | Date: | Thu, 06 Nov 2008 12:59:38 +0000 |
| Subject: | #46502 [Opn->Bgs]: Instanciate class that inherits from an abstract one | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-130700@lists.php.net to get a copy of this message | ||
ID: 46502
Updated by: johannes@php.net
Reported By: frajper at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: RHEL 4
PHP Version: 5.2CVS-2008-11-06 (snap)
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
.
Previous Comments:
------------------------------------------------------------------------
[2008-11-06 12:49:22] frajper at gmail dot com
Description:
------------
In the same file, you cannot instanciate an object of a child-class
that extends an abstract one before the child-class has been defined.
// The following code does not work //
$s = new Son ();
abstract class Bird {}
class Father extends Dove {}
Reproduce code:
---------------
Fatal error: Class 'Import_ald' not found in
/home/enric00/no_public/import/Import_ald.php on line 7
Expected result:
----------------
Normal execution
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46502&edit=1