xuanyan
unread,Nov 2, 2009, 5:08:56 AM11/2/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Smarty Developers
Hi,
First of all thanks for the excellent work on Smarty, keep up the
good work, I really appreciate it!
Today,I checkout the Smarty3 to the version 3295, well, it not work
correctly in my project, i find the problem is in the Smarty.class.php
line 94 , if i have already register a spl_autoload functions, then
the spl_autoload_register() can't register the function 'spl_autoload'
correctly... and i fix it by change the code 'spl_autoload_register()'
to "spl_autoload_register('spl_autoload')";
there are two test:
-------------------------
function a() {
}
spl_autoload_register('a');
spl_autoload_register();
print_r(spl_autoload_functions());exit;
// the result is only the function 'a'
----------------------------------
spl_autoload_register();
print_r(spl_autoload_functions());exit;
// the result is has the function 'spl_autoload' ...
i think it is the spl_autoload bug...
plz check it ~ thanks