aports/testing/php85-pecl-brotli/fix-smart-string.patch

27 lines
801 B
Diff

Patch-Source: https://github.com/kjdev/php-ext-brotli/pull/76/commits/aac82ce0275f4ec71c86c8a17a763a9f6b5a4045
From aac82ce0275f4ec71c86c8a17a763a9f6b5a4045 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Wed, 30 Jul 2025 12:38:27 +0200
Subject: [PATCH] use Zend/zend_smart_string.h
---
brotli.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/brotli.c b/brotli.c
index 16c300b..84e2ab4 100644
--- a/brotli.c
+++ b/brotli.c
@@ -10,7 +10,11 @@
#include <ext/standard/base64.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>