patch-main_php_ini_c 615 B

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