I am writing a small project which makes use of PHPSavant for templating. Now, this template engine is a little out of date and doesn't use namespaces so I'm going through the code and adding them. I'm using PHP-FIG's autoload function for the project.
My problem is that when PHPSavant's Error class is autoloaded, it seems to be passing the arguments for the constructor to include() and I can't seem to figure out the correct way to pass arguments to a namespaced instantiation.
Here is the relevant code:
$err = new Savant3\Error($config);
And the resulting error:
PHP Warning: include(): File name is longer than the maximum allowed
platform (4096): project\sys\3p\Savant3\Savant3\Error: Array( [lots of array data])
And yes, there are two directories/spaces named Savant3, I didn't want to go through and rename a bunch of classes and relative directories.
So is this a problem with the autoloader or am I missing something regarding constructing namespaced classes?