summaryrefslogtreecommitdiffstats
path: root/88.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-08-13 06:38:10 +0200
committerRemi Collet <remi@php.net>2025-08-13 06:38:10 +0200
commit7a9a39faf331949bd5ebefbeb4ef95e99d0c1349 (patch)
treee76fb023c2ec217d22b55a24b3c9255f3bdd10de /88.patch
parent2506905379819d18a133296422f3ea799b7a168a (diff)
fix for PHP 8.5.0alpha3 using patch from
https://github.com/kjdev/php-ext-zstd/pull/88 re-license spec file to CECILL-2.1
Diffstat (limited to '88.patch')
-rw-r--r--88.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/88.patch b/88.patch
new file mode 100644
index 0000000..8ff964a
--- /dev/null
+++ b/88.patch
@@ -0,0 +1,25 @@
+From 96d5dcea944a188e9a388bf19ed81ee41f1a990c Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Wed, 30 Jul 2025 12:06:59 +0200
+Subject: [PATCH] use Zend/zend_smart_string.h
+
+---
+ zstd.c | 4 ++++
+ 1 file changed, 4 insertions(+)
+
+diff --git a/zstd.c b/zstd.c
+index 5479ba5..8ad068f 100644
+--- a/zstd.c
++++ b/zstd.c
+@@ -30,7 +30,11 @@
+ #include <php_ini.h>
+ #include <ext/standard/file.h>
+ #include <ext/standard/info.h>
++#if PHP_VERSION_ID < 70200
+ #include <ext/standard/php_smart_string.h>
++#else
++#include "Zend/zend_smart_string.h"
++#endif
+ #if defined(HAVE_APCU_SUPPORT)
+ #include <ext/standard/php_var.h>
+ #include <ext/apcu/apc_serializer.h>