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:
@@ -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
|
||||
|
Reference in New Issue
Block a user