mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2024-11-14 01:08:41 +00:00
8ab30e24b7
- Elimination of ConfigDef and subclasses in favor of stdclass. Most property names stay the same - Added benchmark script for ConfigSchema - Types are internally handled as magic integers. Use HTMLPurifier_VarParser->getTypeName to convert to human readable form. HTMLPurifier_VarParser still accepts strings. - Parser in config schema only used for legacy interface git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/trunk@1764 48356398-32a2-884e-a903-53898d9a118a
15 lines
363 B
PHP
15 lines
363 B
PHP
<?php
|
|
|
|
chdir(dirname(__FILE__));
|
|
|
|
//require_once '../library/HTMLPurifier.path.php';
|
|
shell_exec('php ../maintenance/generate-schema-cache.php');
|
|
require_once '../library/HTMLPurifier.path.php';
|
|
require_once 'HTMLPurifier.includes.php';
|
|
|
|
$begin = xdebug_memory_usage();
|
|
|
|
$schema = HTMLPurifier_ConfigSchema::makeFromSerial();
|
|
|
|
echo xdebug_memory_usage() - $begin;
|