9 if (function_exists(
'spl_autoload_register') && function_exists(
'spl_autoload_unregister')) {
12 if (function_exists(
'__autoload')) {
14 spl_autoload_register(
'__autoload');
16 } elseif (!function_exists(
'__autoload')) {
17 function __autoload($class)
23 if (ini_get(
'zend.ze1_compatibility_mode')) {
24 trigger_error(
"HTML Purifier is not compatible with zend.ze1_compatibility_mode; please turn it off", E_USER_ERROR);
static autoload($class)
Autoload function for HTML Purifier.
static registerAutoload()
"Pre-registers" our autoloader on the SPL stack.