1
0
mirror of https://github.com/ezyang/htmlpurifier.git synced 2025-07-31 03:10:09 +02:00

Fix broken test-suite in early versions of PHP.

Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
Edward Z. Yang
2008-12-05 15:50:59 -05:00
parent d67e17a69c
commit 90110a4e3a
2 changed files with 12 additions and 11 deletions

View File

@@ -85,6 +85,17 @@ if (!SimpleReporter::inCli()) {
$AC['php'] = $php;
}
// initialize and load HTML Purifier
// use ?standalone to load the alterative standalone stub
if ($AC['standalone']) {
require '../library/HTMLPurifier.standalone.php';
} else {
require '../library/HTMLPurifier.path.php';
require 'HTMLPurifier.includes.php';
}
require '../library/HTMLPurifier.autoload.php';
require 'HTMLPurifier/Harness.php';
// Shell-script code is executed
if ($AC['xml']) {
@@ -100,17 +111,6 @@ if ($AC['flush']) {
htmlpurifier_flush($AC['php'], $reporter);
}
// initialize and load HTML Purifier
// use ?standalone to load the alterative standalone stub
if ($AC['standalone']) {
require '../library/HTMLPurifier.standalone.php';
} else {
require '../library/HTMLPurifier.path.php';
require 'HTMLPurifier.includes.php';
}
require '../library/HTMLPurifier.autoload.php';
require 'HTMLPurifier/Harness.php';
// Now, userland code begins to be executed
// setup special DefinitionCacheFactory decorator