Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 988ffc9

Browse files
committed
#232: dds PHP 5 applicable session settings into service configuration.
1 parent 36ac2a4 commit 988ffc9

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
Summary of release changes.
66

7+
### 2.2.2 - Unreleased
8+
9+
- Adds PHP 5 applicable session settings into service configuration.
10+
711
### 2.2.1 - 2019-07-28
812

913
- Updates php-hello-world to [0.13.0](https://github.com/jdeathe/php-hello-world/releases/tag/0.13.0).

Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ ADD src /
4949
# - Disable all Apache modules and enable the minimum
5050
# - Disable the default SSL Virtual Host
5151
# - Disable SSL
52-
# - Add default PHP configuration overrides to 00-php.ini drop-in.
52+
# - Add default PHP configuration overrides to 00-php.ini drop-in
53+
# - PHP OPcache configuration
5354
# - Replace placeholders with values in systemd service unit template
5455
# - Set permissions
5556
# ------------------------------------------------------------------------------
@@ -169,6 +170,8 @@ RUN useradd -r -M -d /var/www/app -s /sbin/nologin app \
169170
-e 's~^;?(realpath_cache_size( )?=).*$~\1\24096k~' \
170171
-e 's~^;?(realpath_cache_ttl( )?=).*$~\1\2600~' \
171172
-e 's~^;?(session.cookie_httponly( )?=).*$~\1\21~' \
173+
-e 's~^;?(session.hash_bits_per_character( )?=).*$~\1\25~' \
174+
-e 's~^;?(session.hash_function( )?=).*$~\1\2sha256~' \
172175
-e 's~^;?(session.name( )?=).*$~\1\2"${PHP_OPTIONS_SESSION_NAME:-PHPSESSID}"~' \
173176
-e 's~^;?(session.save_handler( )?=).*$~\1\2"${PHP_OPTIONS_SESSION_SAVE_HANDLER:-files}"~' \
174177
-e 's~^;?(session.save_path( )?=).*$~\1\2"${PHP_OPTIONS_SESSION_SAVE_PATH:-/var/lib/php/session}"~' \

0 commit comments

Comments
 (0)