Skip to content

incorrect path in autoload.dist.phpΒ #24

@rafal-sokolowski

Description

@rafal-sokolowski

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';

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions