diff options
author | Remi Collet <remi@remirepo.net> | 2025-07-17 09:23:33 +0200 |
---|---|---|
committer | Remi Collet <remi@php.net> | 2025-07-17 09:23:33 +0200 |
commit | 2755752c33e63a63904bc105a97923431bead12b (patch) | |
tree | dccfb68d48d7f0f40705f152a5960d6f56b3daca /1849.patch | |
parent | 81c1d3fda64cae69a1dd776786e2fd230d811fd8 (diff) |
https://github.com/mongodb/mongo-php-driver/pull/1849
Diffstat (limited to '1849.patch')
-rw-r--r-- | 1849.patch | 22 |
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); + } |