mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-08-22 21:53:32 +02:00
[2.1.4] Add information about PHP 5.0.5 or earlier.
- Fix segfault in 5.0.x with IDAccumulator test. git-svn-id: http://htmlpurifier.org/svnroot/htmlpurifier/branches/php4@1726 48356398-32a2-884e-a903-53898d9a118a
This commit is contained in:
@@ -32,7 +32,10 @@ class HTMLPurifier_IDAccumulatorTest extends HTMLPurifier_Harness
|
||||
|
||||
function testBuild() {
|
||||
$this->config->set('Attr', 'IDBlacklist', array('foo'));
|
||||
$accumulator = HTMLPurifier_IDAccumulator::build($this->config, $this->context);
|
||||
// For some reason, doing the static call here results in a segfault
|
||||
// for early versions of PHP 5.0.x
|
||||
$acc = new HTMLPurifier_IDAccumulator();
|
||||
$accumulator = $acc->build($this->config, $this->context);
|
||||
$this->assertTrue( isset($accumulator->ids['foo']) );
|
||||
}
|
||||
|
||||
|
@@ -12,16 +12,7 @@ $versions_to_test = array(
|
||||
'4.4.7',
|
||||
'5.0.4',
|
||||
'5.0.5',
|
||||
'5.1.4',
|
||||
'5.1.6',
|
||||
'5.2.0',
|
||||
'5.2.1',
|
||||
'5.2.2',
|
||||
'5.2.3',
|
||||
'5.2.4',
|
||||
'5.2.5RC2-dev',
|
||||
'5.3.0-dev',
|
||||
// '6.0.0-dev',
|
||||
// We don't care about later versions: use HTML Purifier 3+!!!
|
||||
);
|
||||
|
||||
echo str_repeat('-', 70) . "\n";
|
||||
|
Reference in New Issue
Block a user