mirror of
https://github.com/php/php-src.git
synced 2025-01-22 11:44:09 +08:00
Fixed CGI tests
This commit is contained in:
parent
b629056504
commit
db2452bb42
@ -1436,7 +1436,7 @@ COMMAND $cmd
|
||||
/* when using CGI, strip the headers from the output */
|
||||
$headers = "";
|
||||
if (isset($old_php) && preg_match("/^(.*?)\r?\n\r?\n(.*)/s", $out, $match)) {
|
||||
$output = $match[2];
|
||||
$output = trim($match[2]);
|
||||
$rh = preg_split("/[\n\r]+/",$match[1]);
|
||||
$headers = array();
|
||||
foreach ($rh as $line) {
|
||||
|
Loading…
Reference in New Issue
Block a user