After ./sms.php +37598958594 "test" "test" i got an error:
PHP Warning: Constants may only evaluate to scalar values in /usr/lib/zabbix/alertscripts/config.php on line 27
PHP Notice: Use of undefined constant GATEWAY_PARAMS - assumed 'GATEWAY_PARAMS' in /usr/lib/zabbix/alertscripts/sms.php on line 16
PHP Warning: Illegal string offset 'msg' in /usr/lib/zabbix/alertscripts/lib/Zabbix/Sms/Client/Budgetsms.php on line 29
PHP Warning: Illegal string offset 'to' in /usr/lib/zabbix/alertscripts/lib/Zabbix/Sms/Client/Budgetsms.php on line 30
PHP Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given in /usr/lib/zabbix/alertscripts/lib/Zabbix/Sms/Client.php on line 108
PHP Fatal error: Call to undefined function Zabbix\Sms\curl_init() in /usr/lib/zabbix/alertscripts/lib/Zabbix/Sms/Client.php on line 67
Hello!
After ./sms.php +37598958594 "test" "test" i got an error: PHP Warning: Constants may only evaluate to scalar values in /usr/lib/zabbix/alertscripts/config.php on line 27 PHP Notice: Use of undefined constant GATEWAY_PARAMS - assumed 'GATEWAY_PARAMS' in /usr/lib/zabbix/alertscripts/sms.php on line 16 PHP Warning: Illegal string offset 'msg' in /usr/lib/zabbix/alertscripts/lib/Zabbix/Sms/Client/Budgetsms.php on line 29 PHP Warning: Illegal string offset 'to' in /usr/lib/zabbix/alertscripts/lib/Zabbix/Sms/Client/Budgetsms.php on line 30 PHP Warning: http_build_query(): Parameter 1 expected to be Array or Object. Incorrect value given in /usr/lib/zabbix/alertscripts/lib/Zabbix/Sms/Client.php on line 108 PHP Fatal error: Call to undefined function Zabbix\Sms\curl_init() in /usr/lib/zabbix/alertscripts/lib/Zabbix/Sms/Client.php on line 67
How to solve? Debian 8 PHP 5.6.33-0+deb8u1