@@ -8,17 +8,21 @@ export BF_E=`basename ${0}`
88# Optionally override configuration.
99#======================================================================================================================
1010
11- bf-echo "Setting php.ini configuration values..."
12-
13- declare -A VALUES
14- VALUES["display_errors"]="${PHP_INI_DISPLAY_ERRORS-}"
15- VALUES["display_startup_errors"]="${PHP_INI_DISPLAY_STARTUP_ERRORS-}"
16- VALUES["error_log"]="${PHP_INI_ERROR_LOG-}"
17- VALUES["error_reporting"]="${PHP_INI_ERROR_REPORTING-}"
18- VALUES["memory_limit"]="${PHP_INI_MEMORY_LIMIT-}"
19- VALUES["post_max_size"]="${PHP_INI_MAX_POST-}"
20- VALUES["session.gc_maxlifetime"]="${PHP_SESSION_MAX_LIFETIME-}"
21- VALUES["upload_max_filesize"]="${PHP_INI_MAX_UPLOAD-}"
22-
23- source ${BF_INC}/php-replace-ini.sh
24- replace-ini VALUES ${PHP_DIR}/php.ini
11+ if [ "${PHP_INI}" != "custom" ] ; then
12+
13+ bf-echo "Setting php.ini configuration values..."
14+
15+ declare -A VALUES
16+ VALUES["display_errors"]="${PHP_INI_DISPLAY_ERRORS-}"
17+ VALUES["display_startup_errors"]="${PHP_INI_DISPLAY_STARTUP_ERRORS-}"
18+ VALUES["error_log"]="${PHP_INI_ERROR_LOG-}"
19+ VALUES["error_reporting"]="${PHP_INI_ERROR_REPORTING-}"
20+ VALUES["memory_limit"]="${PHP_INI_MEMORY_LIMIT-}"
21+ VALUES["post_max_size"]="${PHP_INI_MAX_POST-}"
22+ VALUES["session.gc_maxlifetime"]="${PHP_SESSION_MAX_LIFETIME-}"
23+ VALUES["upload_max_filesize"]="${PHP_INI_MAX_UPLOAD-}"
24+
25+ source ${BF_INC}/php-replace-ini.sh
26+ replace-ini VALUES ${PHP_DIR}/php.ini
27+
28+ fi
0 commit comments