-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patherror-reporting.ini
More file actions
158 lines (134 loc) · 4.98 KB
/
error-reporting.ini
File metadata and controls
158 lines (134 loc) · 4.98 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
; ============================================================================
; KaririCode DevKit - Error Reporting Configuration
; ============================================================================
; Strict error reporting configuration for development environment
; All errors, warnings, and notices are displayed to catch issues early
;
; Location: devkit/.config/php/error-reporting.ini
; ============================================================================
[PHP]
; ============================================================================
; ERROR REPORTING
; ============================================================================
; Report all errors, warnings, and notices
error_reporting = E_ALL
; Display errors on screen (development only)
display_errors = On
display_startup_errors = On
; Log errors to file
log_errors = On
error_log = /var/log/php_errors.log
; Detailed error messages
html_errors = On
docref_root = "https://www.php.net/manual/en/"
docref_ext = .html
; Track all errors
track_errors = Off
xmlrpc_errors = Off
; ============================================================================
; ASSERTIONS
; ============================================================================
; Enable assertions for development
zend.assertions = 1
assert.active = 1
assert.exception = 1
assert.warning = 0
assert.bail = 0
; ============================================================================
; DEVELOPMENT SETTINGS
; ============================================================================
; Hide PHP version in headers (security)
expose_php = Off
; Variables order
variables_order = "EGPCS"
request_order = "GP"
; Auto-detect line endings
auto_detect_line_endings = Off
; ============================================================================
; RESOURCE LIMITS
; ============================================================================
; Memory limit (generous for development)
memory_limit = 512M
; Maximum execution time
max_execution_time = 30
max_input_time = 60
; Input size limits
post_max_size = 25M
upload_max_filesize = 20M
max_file_uploads = 20
; ============================================================================
; OUTPUT BUFFERING
; ============================================================================
; Output buffering (off for immediate error display)
output_buffering = Off
implicit_flush = On
; ============================================================================
; DATE/TIME
; ============================================================================
; Default timezone
date.timezone = UTC
; ============================================================================
; SESSION
; ============================================================================
; Session configuration
session.save_handler = files
session.save_path = "/tmp"
session.use_strict_mode = 1
session.use_cookies = 1
session.use_only_cookies = 1
session.cookie_httponly = 1
session.cookie_secure = 0
session.cookie_samesite = "Lax"
session.gc_probability = 1
session.gc_divisor = 100
session.gc_maxlifetime = 1440
session.sid_length = 48
session.sid_bits_per_character = 6
; ============================================================================
; REALPATH CACHE
; ============================================================================
; Realpath cache (keep small for development)
realpath_cache_size = 4096K
realpath_cache_ttl = 120
; ============================================================================
; FILE UPLOADS
; ============================================================================
; File uploads enabled
file_uploads = On
upload_tmp_dir = /tmp
; ============================================================================
; SECURITY
; ============================================================================
; Disable dangerous functions (customize as needed)
disable_functions =
disable_classes =
; ============================================================================
; MAIL
; ============================================================================
; Mail configuration (usually handled by application)
SMTP = localhost
smtp_port = 25
sendmail_path = /usr/sbin/sendmail -t -i
; ============================================================================
; MISC
; ============================================================================
; Allow URL fopen (needed for many libraries)
allow_url_fopen = On
allow_url_include = Off
; Auto-prepend/append files
auto_prepend_file =
auto_append_file =
; Default charset
default_charset = "UTF-8"
; Maximum input variables (prevent resource exhaustion)
max_input_vars = 1000
max_input_nesting_level = 64
; ============================================================================
; EXTENSIONS
; ============================================================================
; Common extensions are enabled by default in kariricode/php-api-stack
; Additional extensions can be enabled as needed:
; extension=redis.so
; extension=memcached.so
; extension=apcu.so
; extension=imagick.so