com php-src: Merge branch 'PHP-5.6' into PHP-7.0: sapi/fpm/tests/include.inc

From: Date: Fri, 22 Jul 2016 07:36:36 +0000
Subject: com php-src: Merge branch 'PHP-5.6' into PHP-7.0: sapi/fpm/tests/include.inc
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-93311@lists.php.net to get a copy of this message
Commit: 9622f973a5a4e9ca42903bb48c3c467d86c578d5 Author: Remi Collet <remi@php.net> Fri, 22 Jul 2016 09:36:36 +0200 Parents: 4472f9e822c723164ee8fe1f481ef5e36b58ee8b fb4a6dc0f1df106dae84c9d8f3ec53cc0da7231b Branches: PHP-7.0 PHP-7.1 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=9622f973a5a4e9ca42903bb48c3c467d86c578d5 Log: Merge branch 'PHP-5.6' into PHP-7.0 * PHP-5.6: FPM: add test for CVE-2016-5385 Changed paths: MM sapi/fpm/tests/include.inc Diff: diff --cc sapi/fpm/tests/include.inc index 5cbb08b,a8b64f4..7c50112 --- a/sapi/fpm/tests/include.inc +++ b/sapi/fpm/tests/include.inc @@@ -96,12 -84,12 +96,12 @@@ function fpm_display_log($tail, $n=1, $ $n--; } } -} +} /* }}} */ - function run_request($host, $port, $uri='/ping', $query='') { /* {{{ */ -function run_request($host, $port, $uri='/ping', $query='', $headers=array()) { ++function run_request($host, $port, $uri='/ping', $query='', $headers=array()) { /* {{{ */ require_once 'fcgi.inc'; $client = new Adoy\FastCGI\Client($host, $port); - $params = array( + $params = array_merge(array( 'GATEWAY_INTERFACE' => 'FastCGI/1.0', 'REQUEST_METHOD' => 'GET', 'SCRIPT_FILENAME' => $uri, @@@ -118,7 -106,6 +118,7 @@@ 'SERVER_PROTOCOL' => 'HTTP/1.1', 'CONTENT_TYPE' => '', 'CONTENT_LENGTH' => 0 - ); + ), $headers); return $client->request($params, false)."\n"; } +/* }}} */

« previous php.cvs (#93311) next »