Skip to content

Commit

Permalink
Add env vars for zend params, closes #205
Browse files Browse the repository at this point in the history
  • Loading branch information
csandanov committed Oct 9, 2024
1 parent f9cab22 commit 7a827b3
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 97 deletions.
10 changes: 10 additions & 0 deletions 8/templates/docker-php-8.1.ini.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,13 @@ session.lazy_write = {{ getenv "PHP_SESSION_LAZY_WRITE" "on" }}
[Assertion]
zend.assertions = {{ getenv "PHP_ZEND_ASSERTIONS" "1" }}
assert.active = {{ getenv "PHP_ASSERT_ACTIVE" "On" }}
zend.exception_ignore_args = {{ getenv "PHP_ZEND_EXCEPTION_IGNORE_ARGS" "0" }}
zend.multibyte = {{ getenv "PHP_ZEND_MULTIBYTE" "0" }}
zend.signal_check = {{ getenv "PHP_ZEND_SIGNAL_CHECK" "0" }}
zend.exception_string_param_max_len = {{ getenv "PHP_ZEND_EXCEPTION_STRING_PARAM_MAX_LEN" "15" }}
{{- if getenv "PHP_ZEND_SCRIPT_ENCODING" }}
zend.script_encoding = {{ getenv "PHP_ZEND_SCRIPT_ENCODING" }}
{{- end }}
{{- if getenv "PHP_ZEND_DETECT_UNICODE" }}
zend.detect_unicode = {{ getenv "PHP_ZEND_DETECT_UNICODE" }}
{{- end }}
10 changes: 10 additions & 0 deletions 8/templates/docker-php-8.2.ini.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,13 @@ session.lazy_write = {{ getenv "PHP_SESSION_LAZY_WRITE" "on" }}
[Assertion]
zend.assertions = {{ getenv "PHP_ZEND_ASSERTIONS" "1" }}
assert.active = {{ getenv "PHP_ASSERT_ACTIVE" "On" }}
zend.exception_ignore_args = {{ getenv "PHP_ZEND_EXCEPTION_IGNORE_ARGS" "0" }}
zend.multibyte = {{ getenv "PHP_ZEND_MULTIBYTE" "0" }}
zend.signal_check = {{ getenv "PHP_ZEND_SIGNAL_CHECK" "0" }}
zend.exception_string_param_max_len = {{ getenv "PHP_ZEND_EXCEPTION_STRING_PARAM_MAX_LEN" "15" }}
{{- if getenv "PHP_ZEND_SCRIPT_ENCODING" }}
zend.script_encoding = {{ getenv "PHP_ZEND_SCRIPT_ENCODING" }}
{{- end }}
{{- if getenv "PHP_ZEND_DETECT_UNICODE" }}
zend.detect_unicode = {{ getenv "PHP_ZEND_DETECT_UNICODE" }}
{{- end }}
10 changes: 10 additions & 0 deletions 8/templates/docker-php-8.3.ini.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -79,3 +79,13 @@ session.lazy_write = {{ getenv "PHP_SESSION_LAZY_WRITE" "on" }}

[Assertion]
zend.assertions = {{ getenv "PHP_ZEND_ASSERTIONS" "1" }}
zend.exception_ignore_args = {{ getenv "PHP_ZEND_EXCEPTION_IGNORE_ARGS" "0" }}
zend.multibyte = {{ getenv "PHP_ZEND_MULTIBYTE" "0" }}
zend.signal_check = {{ getenv "PHP_ZEND_SIGNAL_CHECK" "0" }}
zend.exception_string_param_max_len = {{ getenv "PHP_ZEND_EXCEPTION_STRING_PARAM_MAX_LEN" "15" }}
{{- if getenv "PHP_ZEND_SCRIPT_ENCODING" }}
zend.script_encoding = {{ getenv "PHP_ZEND_SCRIPT_ENCODING" }}
{{- end }}
{{- if getenv "PHP_ZEND_DETECT_UNICODE" }}
zend.detect_unicode = {{ getenv "PHP_ZEND_DETECT_UNICODE" }}
{{- end }}
Loading

0 comments on commit 7a827b3

Please sign in to comment.