2007-11-05 05:01:51 +00:00
|
|
|
<?php
|
|
|
|
|
2008-01-05 00:10:43 +00:00
|
|
|
/** @file
|
|
|
|
* Multiple PHP Versions test
|
|
|
|
*
|
|
|
|
* This file tests HTML Purifier in all versions of PHP. It requires a
|
|
|
|
* script called phpv that takes an extra argument, $version, before
|
|
|
|
* the filename, is required. Contact me if you'd like to set up a
|
|
|
|
* similar script.
|
|
|
|
*/
|
|
|
|
|
2007-11-05 05:01:51 +00:00
|
|
|
$versions_to_test = array(
|
2007-11-05 05:25:59 +00:00
|
|
|
'FLUSH',
|
2007-11-25 02:24:39 +00:00
|
|
|
'5.0.0',
|
|
|
|
'5.0.1',
|
|
|
|
'5.0.2',
|
|
|
|
'5.0.3',
|
2007-11-05 05:25:59 +00:00
|
|
|
'5.0.4',
|
|
|
|
'5.0.5',
|
2007-11-25 02:24:39 +00:00
|
|
|
'5.1.0',
|
|
|
|
'5.1.1',
|
|
|
|
'5.1.2',
|
|
|
|
'5.1.3',
|
2007-11-05 05:25:59 +00:00
|
|
|
'5.1.4',
|
2007-11-25 02:24:39 +00:00
|
|
|
// '5.1.5', // zip appears to be missing
|
2007-11-05 05:01:51 +00:00
|
|
|
'5.1.6',
|
2007-11-05 05:25:59 +00:00
|
|
|
'5.2.0',
|
|
|
|
'5.2.1',
|
|
|
|
'5.2.2',
|
2007-11-05 05:01:51 +00:00
|
|
|
'5.2.3',
|
|
|
|
'5.2.4',
|
2007-11-25 02:24:39 +00:00
|
|
|
'5.2.5',
|
2007-11-05 05:01:51 +00:00
|
|
|
'5.3.0-dev',
|
|
|
|
// '6.0.0-dev',
|
|
|
|
);
|
|
|
|
|
|
|
|
echo str_repeat('-', 70) . "\n";
|
|
|
|
echo "HTML Purifier\n";
|
|
|
|
echo "Multiple PHP Versions Test\n\n";
|
|
|
|
|
2007-11-06 03:34:45 +00:00
|
|
|
passthru("php ../maintenance/merge-library.php");
|
|
|
|
|
2007-11-05 05:01:51 +00:00
|
|
|
foreach ($versions_to_test as $version) {
|
2007-11-05 05:25:59 +00:00
|
|
|
if ($version === 'FLUSH') {
|
|
|
|
shell_exec('php ../maintenance/flush-definition-cache.php');
|
|
|
|
continue;
|
|
|
|
}
|
2007-11-05 05:01:51 +00:00
|
|
|
passthru("phpv $version index.php");
|
2007-11-06 03:34:45 +00:00
|
|
|
passthru("phpv $version index.php standalone");
|
2007-11-05 05:01:51 +00:00
|
|
|
echo "\n\n";
|
|
|
|
}
|