diff options
author | Michael Wallner <mike@php.net> | 2013-10-01 17:01:44 +0200 |
---|---|---|
committer | Michael Wallner <mike@php.net> | 2013-10-01 17:01:44 +0200 |
commit | 4b61203b013468992dc86dea74379a5688ba19c7 (patch) | |
tree | 05cb7eba9243e03a4d2f00653f235d3f59dbf305 | |
parent | ad139d9a00d9de206c7aae4f85eff08eff2c429e (diff) | |
parent | cd1cab3f4726751a0476ac8701ce09cc37cb36df (diff) | |
download | php-git-4b61203b013468992dc86dea74379a5688ba19c7.tar.gz |
Merge branch 'PHP-5.4' into PHP-5.5
* PHP-5.4:
fix bug #62396 'make test' crashes starting with 5.3.14 (missing gzencode())
-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 54a12a177d..7eb445eeb8 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(); |