Frage

I face an awkward problem:

Call to undefined function http_negotiate_language()
  • on a fresh installed server (ubuntu raring)
  • PECL correctly installed, php.ini updated
  • PECL modules are loaded without errors

and:

var_dump(extension_loaded('http')); // return true, everything is fine

I must miss something but what ?

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top