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.

22 satır
482B

  1. <?php
  2. ini_set('xdebug.trace_format', 1);
  3. ini_set('xdebug.show_mem_delta', true);
  4. if (file_exists('Trace.xt')) {
  5. echo "Previous trace Trace.xt must be removed before this script can be run.";
  6. exit;
  7. }
  8. xdebug_start_trace(dirname(__FILE__) . '/Trace');
  9. require_once '../library/HTMLPurifier.auto.php';
  10. $purifier = new HTMLPurifier();
  11. $data = $purifier->purify(file_get_contents('samples/Lexer/4.html'));
  12. xdebug_stop_trace();
  13. echo "Trace finished.";
  14. // vim: et sw=4 sts=4