summaryrefslogtreecommitdiffstats
path: root/opencensus-tests.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2022-09-13 09:30:10 +0200
committerRemi Collet <remi@php.net>2022-09-13 09:30:10 +0200
commit90b18b14295d5cb09088c76929ecb97628f6be9a (patch)
tree0bf2eb5ccae274af870107f929c2a958ddb4d3f1 /opencensus-tests.patch
parentba317c5ed265eb7e243c99eb66b9c503e082919d (diff)
add patch for test suite with PHP 8.2 fromHEADmaster
https://github.com/census-instrumentation/opencensus-php/pull/286
Diffstat (limited to 'opencensus-tests.patch')
-rw-r--r--opencensus-tests.patch36
1 files changed, 36 insertions, 0 deletions
diff --git a/opencensus-tests.patch b/opencensus-tests.patch
new file mode 100644
index 0000000..fde5970
--- /dev/null
+++ b/opencensus-tests.patch
@@ -0,0 +1,36 @@
+From 294a85ebe3f183680ae0f8ad18f122afad588127 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 13 Sep 2022 09:18:32 +0200
+Subject: [PATCH] fix 8.2 deprecation
+
+---
+ ext/tests/basic_context.phpt | 2 +-
+ ext/tests/inherit_context.phpt | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ext/tests/basic_context.phpt b/ext/tests/basic_context.phpt
+index 8f162aa26..832103e50 100644
+--- a/ext/tests/basic_context.phpt
++++ b/ext/tests/basic_context.phpt
+@@ -4,7 +4,7 @@ OpenCensus Trace: Basic Context Test
+ <?php
+
+ $res = opencensus_trace_set_context('traceid', 1234);
+-echo "Set context: ${res}\n";
++echo "Set context: {$res}\n";
+
+ $context = opencensus_trace_context();
+ $class = get_class($context);
+diff --git a/ext/tests/inherit_context.phpt b/ext/tests/inherit_context.phpt
+index be3965f42..4728a592f 100644
+--- a/ext/tests/inherit_context.phpt
++++ b/ext/tests/inherit_context.phpt
+@@ -4,7 +4,7 @@ OpenCensus Trace: Root inherits from context
+ <?php
+
+ $res = opencensus_trace_set_context('traceid', 1234);
+-echo "Set context: ${res}\n";
++echo "Set context: {$res}\n";
+
+ opencensus_trace_begin('root', []);
+ opencensus_trace_begin('inner', []);