1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

Fix build with PHP 8.0

This commit is contained in:
Sunpoet Po-Chuan Hsieh 2020-11-06 11:25:53 +00:00
parent 7295570a8a
commit 83998103e6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=554224

View File

@ -1,6 +1,20 @@
--- geos.c.orig 2016-12-24 10:53:24 UTC
+++ geos.c
@@ -863,7 +863,7 @@ PHP_METHOD(Geometry, buffer)
@@ -33,6 +33,13 @@
/* Own stuff */
#include "php_geos.h"
+#if PHP_MAJOR_VERSION >= 8
+#define TSRMLS_C
+#define TSRMLS_CC
+#define TSRMLS_DC
+#define TSRMLS_FETCH()
+#endif
+
static ZEND_DECLARE_MODULE_GLOBALS(geos);
static PHP_GINIT_FUNCTION(geos);
@@ -863,7 +870,7 @@ PHP_METHOD(Geometry, buffer)
GEOS_PHP_ZVAL data;
HashTable *style;
zend_string *key;
@ -9,7 +23,7 @@
this = (GEOSGeometry*)getRelay(getThis(), Geometry_ce_ptr);
@@ -956,7 +956,7 @@ PHP_METHOD(Geometry, offsetCurve)
@@ -956,7 +963,7 @@ PHP_METHOD(Geometry, offsetCurve)
GEOS_PHP_ZVAL data;
HashTable *style;
zend_string *key;