com php-src: Fix FPM tests for PHP 8: sapi/fpm/tests/response.inc
| From: | Nikita Popov | Date: | Wed, 29 May 2019 15:31:10 +0000 |
| Subject: | com php-src: Fix FPM tests for PHP 8: sapi/fpm/tests/response.inc | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-106450@lists.php.net to get a copy of this message | ||
Commit: 4241258d74e0ce9c7afaccfe27cbe8269482f4eb
Author: Nikita Popov <nikita.ppv@gmail.com> Wed, 29 May 2019 17:31:10 +0200
Parents: 45a0656e9589eff0908067aba5a18026eec51231
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4241258d74e0ce9c7afaccfe27cbe8269482f4eb
Log:
Fix FPM tests for PHP 8
Changed paths:
M sapi/fpm/tests/response.inc
Diff:
diff --git a/sapi/fpm/tests/response.inc b/sapi/fpm/tests/response.inc
index 54f85bc..d6ee6c7 100644
--- a/sapi/fpm/tests/response.inc
+++ b/sapi/fpm/tests/response.inc
@@ -174,7 +174,7 @@ class Response
{
// check default headers
return (
- $this->checkHeader('X-Powered-By', '|^PHP/7|', true) &&
+ $this->checkHeader('X-Powered-By', '|^PHP/8|', true) &&
$this->checkHeader('Content-type', '|^' . $contentType .
'(;\s?charset=\w+)?|', true)
);
}