Unable to autoload classes from PHPExcel
<p>I've been struggeling with this during the last couple of hours :</p>

<p>On my computer (Ubuntu x64, php7.0, apache2  ), I have been able to use PHPExcel, with a piece of homemade software.</p>

<p>On the other hand, I have to deploy on a server (CentOs x64 (Not up to date) php 5.3.3 httpd) which i cannot upgrade and on this server the PHPExcel classes won't load.</p>

<p>You will find enclosed my own autoload, phpexcel autoloader, and the include file :</p>

<p>Caller file :</p>

<pre><code>include_once 'PHPExcel.php';
include_once 'PHPExcel/IOFactory.php';
if ( class_exists('PHPExcel')  )
  error_log('phpexcel loaded');
else
  error_log('phpexcel notloaded');
...
...
...
$colonnes = array();
$locale = 'fr_fr';
PHPExcel_Settings::setLocale($locale);
</code></pre>

<p>Fails when calling PHPExcel_Settings::setLocale($local);</p>

<p>My autoloader :</p>

<pre><code>function __autoload($class_name) {
    $fichierClasse = $_SESSION['PATH_SERVER'] . '/classes/' .$class_name . '.php';
    if (file_exists($fichierClasse))
        require_once $fichierClasse;
    else
        return false;
     }
</code></pre>

<p>and the log says : "Class PHPExcel_Setting not found".</p>

<p>If anyone has the tinest clue that would explain why it isn't loading it would be very appriciated.</p>

<p>Thanks</p>