summaryrefslogtreecommitdiffstats
path: root/yaml-php81.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2021-06-09 15:58:04 +0200
committerRemi Collet <remi@remirepo.net>2021-06-09 15:58:04 +0200
commitae850eb0c0038ce005e9f1326186a6b37c22f64a (patch)
tree0f6b8041a4c27a2ba76dff8b3070946e51ef0685 /yaml-php81.patch
parent75f013dc11953d42d44eef7f553f594632c7b198 (diff)
add fix for test suite with PHP 8.1 from
https://github.com/php/pecl-file_formats-yaml/pull/59
Diffstat (limited to 'yaml-php81.patch')
-rw-r--r--yaml-php81.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/yaml-php81.patch b/yaml-php81.patch
new file mode 100644
index 0000000..edeebcf
--- /dev/null
+++ b/yaml-php81.patch
@@ -0,0 +1,22 @@
+From 53065f4a99d94c6576067df4bc34f1f6fd32d59a Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Wed, 9 Jun 2021 15:51:54 +0200
+Subject: [PATCH] relax test, hide deprecation message
+
+---
+ tests/yaml_parse_file_002.phpt | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/tests/yaml_parse_file_002.phpt b/tests/yaml_parse_file_002.phpt
+index 83c54c7..d626eab 100644
+--- a/tests/yaml_parse_file_002.phpt
++++ b/tests/yaml_parse_file_002.phpt
+@@ -5,6 +5,8 @@ yaml_parse_file - error cases
+ --INI--
+ yaml.decode_timestamp=1
+ date.timezone=GMT
++; E_ALL - E_DEPRECATED to hide Deprecated: yaml_parse_file(): Passing null to parameter #1...
++error_reporting=24575
+ --FILE--
+ <?php
+ try {