12345678910111213 |
- $OpenBSD: patch-main_php_ini_c,v 1.4 2017/01/22 17:00:33 martijn Exp $
- --- main/php_ini.c.orig.port Thu Jan 19 01:17:47 2017
- +++ main/php_ini.c Fri Jan 20 07:35:15 2017
- @@ -576,7 +576,7 @@ int php_init_config(TSRMLS_D)
-
- /* If still no ini file found, search for php.ini file in search path */
- if (!fh.handle.fp) {
- - fh.handle.fp = php_fopen_with_path("php.ini", "r", php_ini_search_path, &php_ini_opened_path TSRMLS_CC);
- + fh.handle.fp = php_fopen_with_path("php-${PV}.ini", "r", php_ini_search_path, &php_ini_opened_path TSRMLS_CC);
- if (fh.handle.fp) {
- fh.filename = php_ini_opened_path;
- }
|