Ticket #869 (new defect)
Namespace * fails for class files containing abstract class
| Reported by: | edward stow | Owned by: | xue |
|---|---|---|---|
| Priority: | normal | Milestone: | 3.1.3 |
| Component: | Prado Framework v3 | Version: | 3.1 |
| Severity: | minor | Keywords: | |
| Cc: |
Description
The prado namespace notation with an * fails to find sublclasses of abstract classes that are contained in the same php file. The sample below fails to find the ExtendedTestClass? declarations contained in the file TestClass?.php
Home.php:
Prado::using('Application.*');
//Prado::using('Application.TestClass'); // does work
class Home extends TPage
{
function onLoad($param)
{
parent::onLoad($param);
$test = new ExtendedTestClass();
}
}
TestClass?.php with two classes, the first is abstract.
abstract class TestClass
{
abstract function testFunction();
}
class ExtendedTestClass extends TestClass
{
function testFunction()
{
}
}
Change History
Note: See
TracTickets for help on using
tickets.
