wamp server php extension PECL Missing

99封情书 提交于 2020-01-03 00:44:07

问题


Does any one know why the PECL extension in wamp server does not exists?

I am trying to use the http_build_url() but I get this error:

Fatal error: Call to undefined function http_build_url() in ...


回答1:


The function http_build_url() is part of the PECL extension pecl_http.

In your WAMP directory locate pecl.exe and open a command shell. Type: pecl install pecl_http and the function call should work.




回答2:


i have found this source of pecl_http package, but dont know how to make it work on wamp as there is no .dll file in there.

http://pecl.php.net/package/pecl_http




回答3:


This question is old now, so if you want pecl with wamp 2.2, click on the wamp icon, hover over php->php extensions and make sure that php_http has a checkmark next to it. Doing this enabled pecl for me.




回答4:


I'm using WAMPServer (x64) with PHP5.6.25 & I want to install "Blesta", the requirements need "Pecl - Mailparse", So:

  1. I download "PHP Mailparse v2.1.6 (PHP v5.6)(Thread Safe)(vc11)(x64)"

  2. I extract the download file in "C:\wamp64\bin\php\php5.6.25\ext" folder

  3. I add "extension=php_mailparse.dll" to file "C:\wamp64\bin\php\php5.6.25\phpForApache.ini" but at the end of "Dynamic Extensions"
  4. Restart the WAMPServer
  5. Install "Blesta"

Note for #3 Example:

;;;;;;;;;;;;;;;;;;;;;;
; Dynamic Extensions ;
;;;;;;;;;;;;;;;;;;;;;;
extension=php_openssl.dll
;extension=php_pdo_firebird.dll
extension=php_pdo_mysql.dll
;extension=php_pdo_oci.dll
;extension=php_pdo_odbc.dll
;extension=php_pdo_pgsql.dll
extension=php_pdo_sqlite.dll
;extension=php_pgsql.dll
;extension=php_shmop.dll

extension=php_mailparse.dll


来源:https://stackoverflow.com/questions/4359075/wamp-server-php-extension-pecl-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!