diff options
| author | Lior Kaplan <kaplanlior@gmail.com> | 2013-10-18 22:57:51 +0300 |
|---|---|---|
| committer | Lior Kaplan <kaplanlior@gmail.com> | 2013-10-18 23:14:00 +0300 |
| commit | fc25e93dad6707a88ba35167ca9fc489768ef4eb (patch) | |
| tree | 51f3feee4cf2d2649683ff276c1196bb625b8b89 /run-tests.php | |
| parent | b9727d6fdae10f1c0a25323f1761435d619f38d4 (diff) | |
| download | php-fc25e93dad6707a88ba35167ca9fc489768ef4eb.tar.gz | |
Imported Upstream version 5.5.5+dfsg
(cherry picked from commit 0beccc7f18562092586aaf6b0883332fde4a0395)
Diffstat (limited to 'run-tests.php')
| -rwxr-xr-x | run-tests.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php index 54a12a177..7eb445eeb 100755 --- a/run-tests.php +++ b/run-tests.php @@ -459,7 +459,7 @@ $pass_options = ''; $compression = 0; $output_file = $CUR_DIR . '/php_test_results_' . date('Ymd_Hi') . '.txt'; -if ($compression) { +if ($compression && in_array("compress.zlib", stream_get_filters())) { $output_file = 'compress.zlib://' . $output_file . '.gz'; } @@ -1547,6 +1547,16 @@ TEST $file } } } + + if (!extension_loaded("zlib") + && ( array_key_exists("GZIP_POST", $section_text) + || array_key_exists("DEFLATE_POST", $section_text)) + ) { + $message = "ext/zlib required"; + show_result('SKIP', $tested, $tested_file, "reason: $message", $temp_filenames); + junit_mark_test_as('SKIP', $shortname, $tested, null, "<![CDATA[\n$message\n]]>"); + return 'SKIPPED'; + } if (@count($section_text['REDIRECTTEST']) == 1) { $test_files = array(); |
