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

27 lines
838 B
Diff

Patch-Source: https://github.com/php/pecl-file_formats-yaml/pull/92/commits/55ab0f8fd30b564e30caec6ffb7c16965e588871
From 55ab0f8fd30b564e30caec6ffb7c16965e588871 Mon Sep 17 00:00:00 2001
From: Remi Collet <remi@remirepo.net>
Date: Wed, 30 Jul 2025 13:51:43 +0200
Subject: [PATCH] use Zend/zend_smart_string.h
---
php_yaml.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/php_yaml.h b/php_yaml.h
index c286ff5..82240da 100644
--- a/php_yaml.h
+++ b/php_yaml.h
@@ -53,7 +53,11 @@ extern "C" {
#include <ext/standard/base64.h>
#include <ext/standard/basic_functions.h>
#include <ext/standard/php_var.h>
+#if PHP_VERSION_ID < 70200
#include <ext/standard/php_smart_string.h>
+#else
+#include <Zend/zend_smart_string.h>
+#endif
#include <Zend/zend_extensions.h>
#include <Zend/zend_hash.h>
#include <Zend/zend_interfaces.h>