zabbix/templates/config
Dmitry Verkhoturov cc028ed792
Fix web frontend crash on socket setups without DB_SERVER_PORT
env_string('DB_SERVER_PORT') returns '' when the variable is unset, and that
empty string is passed to mysqli::real_connect()'s ?int $port argument in
MysqlDbBackend::connect(), throwing a fatal TypeError under PHP 8 that breaks
every frontend page (HTTP 500) on socket / no-port setups. Regressed in the
web config redesign, which replaced getenv() (returns false -> int 0) with
env_string() (returns '').

Add an env_int() helper that maps both unset and empty to the default and
returns an int, and use it for the DB port.
2026-07-01 17:56:31 +00:00
..
agent Updated docker entrypoint structure. Using libraries for common functions 2026-04-03 21:16:40 +09:00
agent2 Updated docker entrypoint structure. Using libraries for common functions 2026-04-03 21:16:40 +09:00
proxy Prepare to remove supervisord 2026-04-13 21:28:21 +09:00
server Prepare to remove supervisord 2026-04-13 21:28:21 +09:00
snmptraps Updated docker entrypoint structure. Using libraries for common functions 2026-04-03 21:16:40 +09:00
web Fix web frontend crash on socket setups without DB_SERVER_PORT 2026-07-01 17:56:31 +00:00
web_service Updated docker entrypoint structure. Using libraries for common functions 2026-04-03 21:16:40 +09:00