till / cssmin

Automatically exported from code.google.com/p/cssmin
0 stars 0 forks source link

Autoloading fails on the first call; was: Fatal error: Class 'CssMinifier' not found #22

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What version of CssMin are you using?
3.0.0.b2

And what is the actual result and/or error message?
Fatal error: Class 'CssMinifier' not found in 
D:\devel\www\_minify\include\cssmin\CssMin.php on line 147

Please provide any additional information below.
I'm trying with the source version.
Is there something i need to declare for the autoload ?

Original issue reported on code.google.com by d.dussou...@2n-tech.com on 22 Feb 2011 at 3:17

GoogleCodeExporter commented 8 years ago
Do you use the Build Version or the Source Version? 

The Build Version needs no autoload (as everything is in one file). In the 
source version the autoloader will get registered automatically if you include 
the file CssMin.php by calling the method CssMin::initialise(). 

Original comment by joe.scylla on 22 Feb 2011 at 7:05

GoogleCodeExporter commented 8 years ago
Ok found the error. Fixing now. Thanks for reporting.

Original comment by joe.scylla on 23 Feb 2011 at 7:55

GoogleCodeExporter commented 8 years ago
Thank you.
It is in the SOURCE version

Original comment by d.dussou...@2n-tech.com on 23 Feb 2011 at 8:26

GoogleCodeExporter commented 8 years ago
Fixed with Version 3.0.0.b3

Strange bug with spl_autoload_register(). The first call to the autoload 
function fails always. I have rewritten the autoload handling to avoid this 
problem.

Original comment by joe.scylla on 23 Feb 2011 at 9:04