; PHP custom configuration for sessions and logging

; Store sessions in Redis so multiple PHP-FPM replicas can share state
session.save_handler = redis
; Add auth=PASSWORD if you set a password on Redis, and adjust database if needed
session.save_path = "tcp://redis:6379?database=0"

; Logging
log_errors = On
error_log = /var/log/php/error.log

; Mounted code changes should invalidate cached opcodes immediately during local development.
opcache.validate_timestamps = 1
opcache.revalidate_freq = 0

; Elastic APM PHP agent
; Disabled locally for test stability (container image does not include the module).
;extension=elastic_apm.so
; Optional bootstrap (enables automatic instrumentation where supported)
;elastic_apm.bootstrap_php_part_file=/opt/elastic/apm-agent-php/src/bootstrap_php_part.php
