문제

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 ?

도움이 되었습니까?

해결책

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top