summaryrefslogtreecommitdiffstats
path: root/1849.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-07-17 09:23:33 +0200
committerRemi Collet <remi@php.net>2025-07-17 09:23:33 +0200
commit2755752c33e63a63904bc105a97923431bead12b (patch)
treedccfb68d48d7f0f40705f152a5960d6f56b3daca /1849.patch
parent81c1d3fda64cae69a1dd776786e2fd230d811fd8 (diff)
add fix for PHP 8.5.0alpha2 fromHEADmaster
https://github.com/mongodb/mongo-php-driver/pull/1849
Diffstat (limited to '1849.patch')
-rw-r--r--1849.patch22
1 files changed, 22 insertions, 0 deletions
diff --git a/1849.patch b/1849.patch
new file mode 100644
index 0000000..3fbc037
--- /dev/null
+++ b/1849.patch
@@ -0,0 +1,22 @@
+From 4f0549efca593cc6243846cbb1d2d5ba28f3c6fb Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Thu, 17 Jul 2025 09:20:28 +0200
+Subject: [PATCH] use ZSTR_IS_INTERNED()
+
+---
+ src/contrib/php_array_api.h | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/contrib/php_array_api.h b/src/contrib/php_array_api.h
+index 5a973375a..5e88c5c74 100644
+--- a/src/contrib/php_array_api.h
++++ b/src/contrib/php_array_api.h
+@@ -350,7 +350,7 @@ char *php_array_zval_to_string(zval *z, int *plen, zend_bool *pfree) {
+ zval c = *z;
+ zval_copy_ctor(&c);
+ convert_to_string(&c);
+- *pfree = ! IS_INTERNED(Z_STR(c));
++ *pfree = ! ZSTR_IS_INTERNED(Z_STR(c));
+ *plen = Z_STRLEN(c);
+ return Z_STRVAL(c);
+ }