class autoload suggestion

Topics: Developer Forum
Feb 2, 2010 at 4:48 AM

Just a suggestion.  As your software does not need/use class autoload, it would be helpful to set autoLoad to false in your class_exists statements.  This avoids conflicts with the underlying system's use of auto load when their class naming convention is similar to yours but converts names to file paths differently. 

Feb 4, 2010 at 11:12 PM

Hi stevell,

Are you referring to PHPExcel 1.7.2 or latest source code?

Latest PHPExcel source code does have an autoload:

Related issue:

Feb 5, 2010 at 3:56 AM
Edited Feb 5, 2010 at 4:03 AM

Yes, I was referring to 1.7.2 but in my brief checking your file paths were resolved without needing autoload and I was able to solve my conflict by altering the two "class_exist" statements found in IOFactory.php. 

At this point, my use of PHPExcel has been limited to just reading xls and xlsx files so I've likely not invoked code using your autoload.  I will use the solution you provided in the future - thank you.