diff options
author | Remi Collet <remi@remirepo.net> | 2022-09-09 15:56:13 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2022-09-09 15:56:13 +0200 |
commit | 27a1303c7f72b767a6bda6a2df4b76e2dcec5ade (patch) | |
tree | 6f34a5c86cb2ec589a7688c798ae69128483c93b /yaml-upstream.patch | |
parent | 0871797de74230cc2e11488e9f71548d79d9b747 (diff) |
add upstream patch for test suite with PHP 8.2
Diffstat (limited to 'yaml-upstream.patch')
-rw-r--r-- | yaml-upstream.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/yaml-upstream.patch b/yaml-upstream.patch new file mode 100644 index 0000000..9457a57 --- /dev/null +++ b/yaml-upstream.patch @@ -0,0 +1,22 @@ +From 534124b8227d26e0e914dabb05425ddc160d9f31 Mon Sep 17 00:00:00 2001 +From: Andy Postnikov <apostnikov@gmail.com> +Date: Fri, 10 Jun 2022 12:42:20 +0300 +Subject: [PATCH] Fix test for PHP 8.2 + +--- + tests/bug_79866.phpt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/bug_79866.phpt b/tests/bug_79866.phpt +index 8d8d62f..2189b90 100644 +--- a/tests/bug_79866.phpt ++++ b/tests/bug_79866.phpt +@@ -35,7 +35,7 @@ foreach( $floats as $idx => $float ) { + $expect = "--- {$native}\n...\n"; + $got = yaml_emit($float); + if ( $got !== $expect ) { +- echo "== FAIL! ${idx} ==\n"; ++ echo "== FAIL! {$idx} ==\n"; + echo "expected:\n{$expect}\n"; + echo "got:{$got}\n"; + } |