zabbix/templates
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
..
config Fix web frontend crash on socket setups without DB_SERVER_PORT 2026-07-01 17:56:31 +00:00
entrypoints Prepare SQLite3 DB file before proxy start 2026-06-11 16:04:35 +09:00
scripts/snmptraps Fixed SNMP traps handler 2026-05-15 19:07:16 +09:00