mirror of
https://github.com/shivammathur/setup-php.git
synced 2025-09-06 04:44:07 +07:00
Refactor extension functions to add_extensions scripts
This commit is contained in:
7
src/scripts/extensions/patches/geos.sh
Normal file
7
src/scripts/extensions/patches/geos.sh
Normal file
@ -0,0 +1,7 @@
|
||||
patch_geos() {
|
||||
if [ "$(php -r "echo PHP_VERSION_ID;")" -ge 70000 ]; then
|
||||
sed -i~ -e "s/, ce->name/, ZSTR_VAL(ce->name)/; s/ulong /zend_ulong /" 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
|
||||
patch -p1 < /tmp/php8.patch 2>/dev/null || true
|
||||
}
|
Reference in New Issue
Block a user