fix lang/php/8.1 using wrong config file (php-8.0.ini instead of php-8.1.ini

This commit is contained in:
sthen 2022-01-25 12:15:42 +00:00
parent 16e3dc2e23
commit 89c206341f
2 changed files with 5 additions and 3 deletions

View File

@ -1,10 +1,12 @@
# $OpenBSD: Makefile,v 1.5 2022/01/23 13:50:32 sthen Exp $
# $OpenBSD: Makefile,v 1.6 2022/01/25 12:15:42 sthen Exp $
BROKEN-sparc64= No fibers support for sparc64
PHP_VERSION= 8.1.2
PHP_PKGSPEC= >=8.1,<8.2
REVISION= 0
DEBUG_PACKAGES= ${BUILD_PACKAGES}
AUTOCONF_VERSION= 2.71

View File

@ -1,4 +1,4 @@
$OpenBSD: patch-main_php_ini_c,v 1.1 2021/12/18 22:28:55 sthen Exp $
$OpenBSD: patch-main_php_ini_c,v 1.2 2022/01/25 12:15:42 sthen Exp $
Index: main/php_ini.c
--- main/php_ini.c.orig
@ -8,7 +8,7 @@ Index: main/php_ini.c
/* If still no ini file found, search for php.ini file in search path */
if (!fp) {
- fp = php_fopen_with_path("php.ini", "r", php_ini_search_path, &opened_path);
+ fp = php_fopen_with_path("php-8.0.ini", "r", php_ini_search_path, &opened_path);
+ fp = php_fopen_with_path("php-${MODPHP_VERSION}.ini", "r", php_ini_search_path, &opened_path);
if (fp) {
filename = ZSTR_VAL(opened_path);
}