You got version 2 of pecl_http, which dropped the function-style API. The supported call is now http\Env::negotiateLanguage
(see the negotiateLanguage docs).
You can either update your code or try to run
# pecl uninstall pecl_http
# pecl install pecl_http-1.7.6
to downgrade.