Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

incorrect path in autoload.dist.php #24

Open
rafal-sokolowski opened this issue Jul 14, 2016 · 0 comments
Open

incorrect path in autoload.dist.php #24

rafal-sokolowski opened this issue Jul 14, 2016 · 0 comments

Comments

@rafal-sokolowski
Copy link

this code

require_once 'jrs-rest-php-client/autoload.dist.php';
$client = new \Jaspersoft\Client\Client();

creates the situation where the value of $location variable in spl_autoload_register is
/home/user/jrs-rest-php-client/src/Jaspersoft\Client\Client.php

the path is incorrect due to backslashes

it is now
$location = JASPERCLIENT_ROOT . $class . '.php';

it should be
$location = JASPERCLIENT_ROOT . str_replace('\\', '/', $class) . '.php';

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant