Domanda

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 ?

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top