File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/scripts/extensions/patches Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
patch_geos () {
2
- if [ " $( php -r " echo PHP_VERSION_ID;" ) " -ge 70000 ]; then
2
+ php_version_id=" $( php -r " echo PHP_VERSION_ID;" ) "
3
+ if [ " $php_version_id " -ge 70000 ]; then
3
4
sed -i~ -e " s/, ce->name/, ZSTR_VAL(ce->name)/; s/ulong /zend_ulong /" geos.c
4
5
fi
6
+ if [ " $php_version_id " -ge 80500 ]; then
7
+ sed -i~ -e " s/zend_exception_get_default(TSRMLS_C)/zend_ce_exception/" geos.c
8
+ fi
5
9
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
6
10
get -q -n /tmp/toString.patch https://git.remirepo.net/cgit/rpms/php/php-geos.git/plain/0006-fix-__toString-with-8.2.patch
7
11
patch -p1 < /tmp/php8.patch 2> /dev/null || true
You can’t perform that action at this time.
0 commit comments