mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-07-31 03:10:09 +02:00
Mute STRICT errors from CSSTidy and don't run PEARSax3 on PHP 5.3.
Signed-off-by: Edward Z. Yang <ezyang@mit.edu>
This commit is contained in:
@@ -7,7 +7,10 @@ class HTMLPurifier_LexerTest extends HTMLPurifier_Harness
|
||||
|
||||
public function __construct() {
|
||||
parent::__construct();
|
||||
if ($GLOBALS['HTMLPurifierTest']['PEAR']) {
|
||||
if ($GLOBALS['HTMLPurifierTest']['PEAR'] &&
|
||||
// PEARSax3 is not maintained and throws loads of DEPRECATED
|
||||
// errors in PHP 5.3
|
||||
version_compare(PHP_VERSION, '5.3', '<')) {
|
||||
require_once 'HTMLPurifier/Lexer/PEARSax3.php';
|
||||
$this->_has_pear = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user