2 HTMLPurifier.auto.php using spl_autoload_register with __autoload() already defined loading test
5 if (!function_exists('spl_autoload_register')) {
6 echo "skip - spl_autoload_register() not available";
10 function __autoload($class) {
11 echo "Autoloading $class...
13 eval("class $class {}");
16 require '../library/HTMLPurifier.auto.php';
17 require 'HTMLPurifier/PHPT/loading/_autoload.inc';
18 $config = HTMLPurifier_Config::createDefault();
19 $purifier = new HTMLPurifier($config);
20 echo $purifier->purify('<b>Salsa!') . "
23 // purposely invoke older autoload