summaryrefslogtreecommitdiffstats
path: root/0001-fix-test-for-php-8.5-194.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-09-04 11:01:31 +0200
committerRemi Collet <remi@php.net>2025-09-04 11:01:31 +0200
commit31bd6a12d71424e5a2f15e7f002c72beedc414c1 (patch)
tree0e61e2b6a2e13374688cc9b110dde0821d452aea /0001-fix-test-for-php-8.5-194.patch
parente40146cbde80a4cd87c1d03324bda81f62bef7db (diff)
add upstream patch for PHP 8.5.0beta2HEADmaster
Diffstat (limited to '0001-fix-test-for-php-8.5-194.patch')
-rw-r--r--0001-fix-test-for-php-8.5-194.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/0001-fix-test-for-php-8.5-194.patch b/0001-fix-test-for-php-8.5-194.patch
new file mode 100644
index 0000000..e5bd230
--- /dev/null
+++ b/0001-fix-test-for-php-8.5-194.patch
@@ -0,0 +1,27 @@
+From 3953640bf49ac099f383d2aa26da5bf1910561c8 Mon Sep 17 00:00:00 2001
+From: Brett McBride <brett.a.mcbride@gmail.com>
+Date: Mon, 25 Aug 2025 22:49:36 +1000
+Subject: [PATCH] fix test for php 8.5 (#194)
+
+Deprecated: Increment on non-numeric string is deprecated, use str_increment() instead in /home/runner/work/opentelemetry-php-instrumentation/opentelemetry-php-instrumentation/ext/tests/multiple_hooks_modify_params.php
+---
+ ext/tests/multiple_hooks_modify_params.phpt | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/ext/tests/multiple_hooks_modify_params.phpt b/ext/tests/multiple_hooks_modify_params.phpt
+index 136ebe5..90e92f9 100644
+--- a/ext/tests/multiple_hooks_modify_params.phpt
++++ b/ext/tests/multiple_hooks_modify_params.phpt
+@@ -11,7 +11,7 @@ function helloWorld($a) {
+ var_dump($a);
+ }
+
+-helloWorld('a');
++helloWorld(1);
+ ?>
+ --EXPECT--
+-string(1) "c"
++int(3)
+--
+2.51.0
+