Skip to content

Commit 6cd0bd8

Browse files
committed
Merge branch 'PHP-5.5' of https://git.php.net/repository/php-src into PHP-5.5
* 'PHP-5.5' of https://git.php.net/repository/php-src: Revert "Make 'make distclean' remove the downloaded pear PHAR" fix bug #62396 'make test' crashes starting with 5.3.14 (missing gzencode())
2 parents d56850a + 60e38b3 commit 6cd0bd8

File tree

2 files changed

+11
-2
lines changed

2 files changed

+11
-2
lines changed

Makefile.global

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,6 @@ distclean: clean
125125
rm -f sapi/fpm/php-fpm.conf sapi/fpm/init.d.php-fpm sapi/fpm/php-fpm.service sapi/fpm/php-fpm.8 sapi/fpm/status.html
126126
rm -f ext/iconv/php_have_bsd_iconv.h ext/iconv/php_have_glibc_iconv.h ext/iconv/php_have_ibm_iconv.h ext/iconv/php_have_iconv.h ext/iconv/php_have_libiconv.h ext/iconv/php_iconv_aliased_libiconv.h ext/iconv/php_iconv_supports_errno.h ext/iconv/php_php_iconv_h_path.h ext/iconv/php_php_iconv_impl.h
127127
rm -f ext/phar/phar.phar ext/phar/phar.php
128-
rm -f pear/install-pear-nozlib.phar
129128
if test "$(srcdir)" != "$(builddir)"; then \
130129
rm -f ext/phar/phar/phar.inc; \
131130
fi

run-tests.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ function save_or_mail_results()
459459
$compression = 0;
460460
$output_file = $CUR_DIR . '/php_test_results_' . date('Ymd_Hi') . '.txt';
461461

462-
if ($compression) {
462+
if ($compression && in_array("compress.zlib", stream_get_filters())) {
463463
$output_file = 'compress.zlib://' . $output_file . '.gz';
464464
}
465465

@@ -1547,6 +1547,16 @@ function run_test($php, $file, $env)
15471547
}
15481548
}
15491549
}
1550+
1551+
if (!extension_loaded("zlib")
1552+
&& ( array_key_exists("GZIP_POST", $section_text)
1553+
|| array_key_exists("DEFLATE_POST", $section_text))
1554+
) {
1555+
$message = "ext/zlib required";
1556+
show_result('SKIP', $tested, $tested_file, "reason: $message", $temp_filenames);
1557+
junit_mark_test_as('SKIP', $shortname, $tested, null, "<![CDATA[\n$message\n]]>");
1558+
return 'SKIPPED';
1559+
}
15501560

15511561
if (@count($section_text['REDIRECTTEST']) == 1) {
15521562
$test_files = array();

0 commit comments

Comments
 (0)