From c1c6c518677de5582e687d5d936210f091ef02d9 Mon Sep 17 00:00:00 2001 From: Shivam Mathur Date: Mon, 28 Jul 2025 17:22:40 +0530 Subject: [PATCH] Update geos patch [skip ci] --- src/scripts/extensions/patches/geos.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/scripts/extensions/patches/geos.sh b/src/scripts/extensions/patches/geos.sh index 5f1a1c06..fb3d460a 100644 --- a/src/scripts/extensions/patches/geos.sh +++ b/src/scripts/extensions/patches/geos.sh @@ -1,7 +1,11 @@ patch_geos() { - if [ "$(php -r "echo PHP_VERSION_ID;")" -ge 70000 ]; then + php_version_id="$(php -r "echo PHP_VERSION_ID;")" + if [ "$php_version_id" -ge 70000 ]; then sed -i~ -e "s/, ce->name/, ZSTR_VAL(ce->name)/; s/ulong /zend_ulong /" geos.c fi + if [ "$php_version_id" -ge 80500 ]; then + sed -i~ -e "s/zend_exception_get_default(TSRMLS_C)/zend_ce_exception/" geos.c + fi get -q -n /tmp/php8.patch https://git.remirepo.net/cgit/rpms/php/php-geos.git/plain/0003-add-all-arginfo-and-fix-build-with-PHP-8.patch get -q -n /tmp/toString.patch https://git.remirepo.net/cgit/rpms/php/php-geos.git/plain/0006-fix-__toString-with-8.2.patch patch -p1 < /tmp/php8.patch 2>/dev/null || true