File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change 4
4
5
5
declare -a SUBSTITUTIONS
6
6
7
+ SUBSTITUTIONS+=(' s/memory_limit ?= ?(.*)/memory_limit = -1/' )
7
8
SUBSTITUTIONS+=(' s/zend.exception_ignore_args ?= ?(On|Off)/zend.exception_ignore_args = Off/' )
8
9
SUBSTITUTIONS+=(' s/zend.exception_string_param_max_len ?= ?[0-9]+/zend.exception_string_param_max_len = 15/' )
9
10
SUBSTITUTIONS+=(' s/error_reporting ?= ?[A-Z_~ &]+/error_reporting = E_ALL/' )
@@ -14,8 +15,10 @@ SUBSTITUTIONS+=('s/zend.assertions ?= ?(-1|1)/zend.assertions = 1/')
14
15
SUBSTITUTIONS+=(' s/opcache.huge_code_pages ?= ?(0|1)/opcache.huge_code_pages = 0/' )
15
16
16
17
for PHP_VERSION in 5.6 7.0 7.1 7.2 7.3 7.4 8.0 8.1; do
17
- INI_FILE=" /etc/php/${PHP_VERSION} /cli/php.ini"
18
- for SUBSTITUTION in " ${SUBSTITUTIONS[@]} " ; do
19
- sed --in-place -E -e " ${SUBSTITUTION} " " ${INI_FILE} "
18
+ for PHP_SAPI in cli phpdbg; do
19
+ INI_FILE=" /etc/php/${PHP_VERSION} /${PHP_SAPI} /php.ini"
20
+ for SUBSTITUTION in " ${SUBSTITUTIONS[@]} " ; do
21
+ sed --in-place -E -e " ${SUBSTITUTION} " " ${INI_FILE} "
22
+ done
20
23
done
21
24
done
You can’t perform that action at this time.
0 commit comments