diff options
author | Max Rees <maxcrees@me.com> | 2018-06-04 21:47:16 -0400 |
---|---|---|
committer | Max Rees <maxcrees@me.com> | 2018-06-05 00:09:19 -0400 |
commit | 8be79780a4d67231c74bfe1f57648a16aea85687 (patch) | |
tree | 5c81c8a6b2e698c08207ab8295e3ccb1f45be220 /user/php7/fix-tests-devserver.patch | |
parent | 577d8627b43bd18379271db3dcc796cc65c4035f (diff) | |
download | packages-8be79780a4d67231c74bfe1f57648a16aea85687.tar.gz packages-8be79780a4d67231c74bfe1f57648a16aea85687.tar.bz2 packages-8be79780a4d67231c74bfe1f57648a16aea85687.tar.xz packages-8be79780a4d67231c74bfe1f57648a16aea85687.zip |
user/php7: new package
Diffstat (limited to 'user/php7/fix-tests-devserver.patch')
-rw-r--r-- | user/php7/fix-tests-devserver.patch | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/user/php7/fix-tests-devserver.patch b/user/php7/fix-tests-devserver.patch new file mode 100644 index 000000000..80a72f0f1 --- /dev/null +++ b/user/php7/fix-tests-devserver.patch @@ -0,0 +1,23 @@ +From: Jakub Jirutka <jakub@jirutka.cz> +Date: Mon, 01 May 2017 01:33:00 +0200 +Subject: [PATCH] Fix tests failing due to extra message from built-in web server + +Remove messages like: + + PHP 7.1.4 Development Server started at Mon May 1 00:42:39 2017 + +from test outputs, because tests do not expect them. I have no clue what +happens here... + +--- a/run-tests.php ++++ b/run-tests.php +@@ -2005,6 +2005,9 @@ + // Does the output match what is expected? + $output = preg_replace("/\r\n/", "\n", trim($out)); + ++ // Remove message from built-in development server. ++ $output = preg_replace("/^PHP [0-9.]+ Development Server started at .*\n\n?/m", "", $output); ++ + /* when using CGI, strip the headers from the output */ + $headers = array(); + |