Files
macports-ports/php/php-jsmin/files/patch_zend-smart-string.diff
2026-03-15 16:54:01 -04:00

21 lines
499 B
Diff

Original idea: Remi Collet <remi@remirepo.net>
Subject: [PATCH] Use Zend/zend_smart_string.h
https://github.com/sqmk/pecl-jsmin/issues/63
--- jsmin.h.orig 2025-10-14 16:42:24
+++ jsmin.h 2025-10-14 16:42:07
@@ -4,7 +4,13 @@
#define JSMIN_H
#include "php.h"
+#if PHP_VERSION_ID >= 70200
+#include "Zend/zend_smart_string.h"
+#elif PHP_VERSION_ID >= 70000
#include "ext/standard/php_smart_string.h"
+#else
+#include "ext/standard/php_smart_str.h"
+#endif
typedef struct {
char *javascript;