;
; 10base
;
short_open_tag = { $php{ShortOpenTag} || "Off" }
expose_php = { $php{ExposePhp} || "On" }
max_execution_time = { $php{MaxExecutionTime} || "0" }
memory_limit = { $MemoryLimit = $php{MemoryLimit} || "128"; }M
post_max_size = { $PostMaxSize = $php{PostMaxSize} || "8"; }M
upload_max_filesize = { $UploadMaxFilesize = $php{UploadMaxFilesize} || "2"; }M {

    # Check memory limits consistency. Must be true the relation
    # UploadMaxFilesize < PostMaxSize < MemoryLimit
    # See http://php.net/manual/en/ini.list.php

    if($UploadMaxFilesize >= $PostMaxSize) {
	warn "php.ini: UploadMaxFilesize must be less than PostMaxSize. See http://php.net/manual/en/ini.list.php\n";
    }

    if($PostMaxSize >= $MemoryLimit) {
	warn "php.ini: PostMaxSize must be less than MemoryLimit. See http://php.net/manual/en/ini.list.php\n";
    }

    ''; 
}
max_file_uploads = {$php{'MaxFileUploads'} ||'20';}
date.timezone = "{ $php{DateTimezone} || 'UTC' }"
; Mitigation for CVE-2026-109618 and CVE-2026-109619 - NethServer/dev#8256
session.upload_progress.enabled = Off
