fuel/core — Issue #657: Extending Core and php syntax errors...
Author: ronan-gloo
Created: 2011-11-09 15:46:17+00:00
State: open

While extending a core class, if the new class has syntax error, the framework autoload seem's to refuse to load the new class, but it still registered in global \ namespace, and report a "Fatal error: Class 'SomeClass' not found...

an example with Uri class

`class Uri extends Fuel\Core\Uri {
$some $stupid $error = "Fatal error: Class 'Uri' not found";
}`

In this case, i've tried to remove the "\", prefix from Uri::string() in Core/finder.php at 310. The class is instantiate and error reported.