Download | Plain Text | No Line Numbers


  1. diff -Naur a/sapi/fpm/fpm/fpm_main.c b/sapi/fpm/fpm/fpm_main.c
  2. --- a/sapi/fpm/fpm/fpm_main.c 2024-08-21 12:53:25.844588828 +0200
  3. +++ b/sapi/fpm/fpm/fpm_main.c 2024-08-21 12:54:09.155267224 +0200
  4. @@ -730,6 +730,16 @@
  5. }
  6. }
  7.  
  8. + /* INI stuff */
  9. + char *ini = FCGI_GETENV(request, "PHP_VALUE");
  10. + if (ini) {
  11. + int mode = ZEND_INI_PERDIR;
  12. + char *tmp;
  13. + spprintf(&tmp, 0, "%s\n", ini);
  14. + zend_parse_ini_string(tmp, 1, ZEND_INI_SCANNER_NORMAL, (zend_ini_parser_cb_t)fastcgi_ini_parser, &mode);
  15. + efree(tmp);
  16. + }
  17. +
  18. if (php_ini_has_per_dir_config() ||
  19. (PG(user_ini_filename) && *PG(user_ini_filename))
  20. ) {
  21. @@ -1354,6 +1364,7 @@
  22. php_handle_auth_data(auth);
  23. }
  24.  
  25. +#if 0
  26. /* INI stuff */
  27. ini = FCGI_GETENV(request, "PHP_VALUE");
  28. if (ini) {
  29. @@ -1372,6 +1383,7 @@
  30. zend_parse_ini_string(tmp, 1, ZEND_INI_SCANNER_NORMAL, (zend_ini_parser_cb_t)fastcgi_ini_parser, &mode);
  31. efree(tmp);
  32. }
  33. +#endif
  34. }
  35. /* }}} */
  36.  
  37.