You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

auto-without-spl-with-autoload.phpt 505B

123456789101112131415161718192021
  1. --TEST--
  2. HTMLPurifier.auto.php without spl_autoload_register but with userland
  3. __autoload() defined test
  4. --SKIPIF--
  5. <?php
  6. if (function_exists('spl_autoload_register')) {
  7. echo "skip - spl_autoload_register() available";
  8. }
  9. --FILE--
  10. <?php
  11. function __autoload($class) {
  12. echo "Autoloading $class...
  13. ";
  14. eval("class $class {}");
  15. }
  16. require '../library/HTMLPurifier.auto.php';
  17. require 'HTMLPurifier/PHPT/loading/_no-autoload.inc';
  18. $purifier = new HTMLPurifier();
  19. --EXPECT--
  20. Autoloading HTMLPurifier...