com php-src: Tiny tweak for `$header` initialization, it should always be an array: run-tests.php

From: Date: Wed, 22 Jun 2016 19:01:34 +0000
Subject: com php-src: Tiny tweak for `$header` initialization, it should always be an array: run-tests.php
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-94313@lists.php.net to get a copy of this message
Commit: ddf1c0891b919dd1d2cbfba064cb77ce1391486d Author: Nazar Mokrynskyi <nazar@mokrynskyi.com> Wed, 22 Jun 2016 22:01:34 +0300 Parents: d69fd5d41ab29a3320f6102f79292fc529007e5e Branches: master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=ddf1c0891b919dd1d2cbfba064cb77ce1391486d Log: Tiny tweak for $header initialization, it should always be an array Changed paths: M run-tests..php Diff: diff --git a/run-tests.php b/run-tests.php index 1639db5..24e127e 100755 --- a/run-tests.php +++ b/run-tests.php @@ -1900,12 +1900,11 @@ COMMAND $cmd $output = preg_replace("/\r\n/", "\n", trim($out)); /* when using CGI, strip the headers from the output */ - $headers = ""; + $headers = array(); if (isset($old_php) && preg_match("/^(.*?)\r?\n\r?\n(.*)/s", $out, $match)) { $output = trim($match[2]); $rh = preg_split("/[\n\r]+/", $match[1]); - $headers = array(); foreach ($rh as $line) { if (strpos($line, ':') !== false) {

« previous php.cvs (#94313) next »