2008-02-18 00:49:45 +00:00
|
|
|
--TEST--
|
|
|
|
HTMLPurifier.auto.php without spl_autoload_register but with userland
|
|
|
|
__autoload() defined test
|
|
|
|
--SKIPIF--
|
|
|
|
<?php
|
|
|
|
if (function_exists('spl_autoload_register')) {
|
|
|
|
echo "skip - spl_autoload_register() available";
|
|
|
|
}
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
function __autoload($class) {
|
2008-11-26 20:30:59 +00:00
|
|
|
echo "Autoloading $class...
|
|
|
|
";
|
2008-02-18 00:49:45 +00:00
|
|
|
eval("class $class {}");
|
|
|
|
}
|
|
|
|
require '../library/HTMLPurifier.auto.php';
|
|
|
|
require 'HTMLPurifier/PHPT/loading/_no-autoload.inc';
|
|
|
|
$purifier = new HTMLPurifier();
|
|
|
|
|
|
|
|
--EXPECT--
|
2008-12-06 09:24:59 +00:00
|
|
|
Autoloading HTMLPurifier...
|