File tree Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Expand file tree Collapse file tree 2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -145,6 +145,7 @@ RUN mkdir -p /usr/local/share/composer \
145
145
&& ln -s /usr/local/share/composer/vendor/bin/cs2pr /usr/local/bin/cs2pr
146
146
147
147
COPY scripts /scripts
148
+ RUN /scripts/php_ini_dev_settings.sh
148
149
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
149
150
150
151
RUN useradd -ms /bin/bash testuser
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ set -e
4
+
5
+ declare -a SUBSTITUTIONS
6
+
7
+ SUBSTITUTIONS+=(' s/zend.exception_ignore_args ?= ?(On|Off)/zend.exception_ignore_args = Off/' )
8
+ SUBSTITUTIONS+=(' s/zend.exception_string_param_max_len ?= ?[0-9]+/zend.exception_string_param_max_len = 15/' )
9
+ SUBSTITUTIONS+=(' s/error_reporting ?= ?[A-Z_~ &]+/error_reporting = E_ALL/' )
10
+ SUBSTITUTIONS+=(' s/display_errors ?= ?(On|Off)/display_errors = On/' )
11
+ SUBSTITUTIONS+=(' s/display_startup_errors ?= ?(On|Off)/display_startup_errors = On/' )
12
+ SUBSTITUTIONS+=(' s/mysqlnd.collect_memory_statistics ?= ?(On|Off)/mysqlnd.collect_memory_statistics = On/' )
13
+ SUBSTITUTIONS+=(' s/zend.assertions ?= ?(-1|1)/zend.assertions = 1/' )
14
+ SUBSTITUTIONS+=(' s/opcache.huge_code_pages ?= ?(0|1)/opcache.huge_code_pages = 0/' )
15
+
16
+ for PHP_VERSION in 5.6 7.0 7.1 7.2 7.3 7.4 8.0; 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} "
20
+ done
21
+ done
You can’t perform that action at this time.
0 commit comments