My zabbix 5.0 is logging this error to Apache error.log:
Note in version 5.2 line number is different, let me post it here for better searching too:
To reproduce, execute an API request, where define output this way:
Yes, this is not an array by mistake, but this API works.
And the main issue here is PHP error which is unclear where it comes from and make zabbix users scary!
Reproduced starting from 5.0 - checked.
Fix it please.