Commit:    cd1cab3f4726751a0476ac8701ce09cc37cb36df
Author:    Michael Wallner <m...@php.net>         Tue, 1 Oct 2013 17:01:03 +0200
Parents:   18b04b480ebc41841b2004cc11797eda40fb3958
Branches:  PHP-5.4 PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=cd1cab3f4726751a0476ac8701ce09cc37cb36df

Log:
fix bug #62396 'make test' crashes starting with 5.3.14
(missing gzencode())

Bugs:
https://bugs.php.net/62396

Changed paths:
  M  NEWS
  M  run-tests.php


Diff:
diff --git a/NEWS b/NEWS
index 9bb6032..b889e66 100644
--- a/NEWS
+++ b/NEWS
@@ -30,6 +30,11 @@ PHP                                                          
              NEWS
   . Fixed bug #61548 (content-type must appear at the end of headers for 201 
     Location to work in http). (Mike)
 
+- Build system:
+  . Fixed bug #62396 ('make test' crashes starting with 5.3.14 (missing 
+    gzencode())). (Mike)
+
+
 19 Sep 2013, PHP 5.4.20
 
 - Core:
diff --git a/run-tests.php b/run-tests.php
index 935f821..317f607 100755
--- a/run-tests.php
+++ b/run-tests.php
@@ -455,7 +455,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';
 }
 
@@ -1545,6 +1545,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();


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to