mirror of
https://github.com/ezyang/htmlpurifier.git
synced 2025-01-18 11:41:52 +00:00
Redirect stderr to stdout when calling flush.php
Signed-off-by: Edward Z. Yang <edwardzyang@thewritingpot.com>
This commit is contained in:
parent
c845f0bb78
commit
ba418a1f19
1
NEWS
1
NEWS
@ -26,6 +26,7 @@ NEWS ( CHANGELOG and HISTORY ) HTMLPurifier
|
|||||||
the other involving an undefined $is_folder error.
|
the other involving an undefined $is_folder error.
|
||||||
- Throw error when %Core.Encoding is set to a spurious value. Previously,
|
- Throw error when %Core.Encoding is set to a spurious value. Previously,
|
||||||
this errored silently and returned false.
|
this errored silently and returned false.
|
||||||
|
- Redirected stderr to stdout for flush error output.
|
||||||
. Strategy_MakeWellFormed now operates in-place, saving memory and allowing
|
. Strategy_MakeWellFormed now operates in-place, saving memory and allowing
|
||||||
for more interesting filter-backtracking
|
for more interesting filter-backtracking
|
||||||
. New HTMLPurifier_Injector->rewind() functionality, allows injectors to rewind
|
. New HTMLPurifier_Injector->rewind() functionality, allows injectors to rewind
|
||||||
|
@ -201,7 +201,7 @@ class FailedTest extends UnitTestCase {
|
|||||||
* Flushes all caches, and fatally errors out if there's a problem.
|
* Flushes all caches, and fatally errors out if there's a problem.
|
||||||
*/
|
*/
|
||||||
function htmlpurifier_flush($php, $reporter) {
|
function htmlpurifier_flush($php, $reporter) {
|
||||||
exec($php . ' ../maintenance/flush.php ' . $php, $out, $status);
|
exec($php . ' ../maintenance/flush.php ' . $php . ' 2>&1', $out, $status);
|
||||||
if ($status) {
|
if ($status) {
|
||||||
$test = new FailedTest(
|
$test = new FailedTest(
|
||||||
'maintenance/flush.php returned non-zero exit status',
|
'maintenance/flush.php returned non-zero exit status',
|
||||||
|
Loading…
Reference in New Issue
Block a user