note 117004 added to http.install

From: Date: Wed, 01 Apr 2015 03:29:29 +0000
Subject: note 117004 added to http.install
Groups: php.notes 
Request: Send a blank email to php-notes+get-202109@lists.php.net to get a copy of this message
If you are having trouble installing pecl_http 2.x (possibly on Ubuntu 14.04 LTS), pay close attention to the output from phpize when building + installing with pecl. You'll need to install the system packages outlined at: http://devel-m6w6.rhcloud.com/mdref/http/ For instance: zlib1g-dev, libcurl4-openssl-dev and libevent-dev You'll also need to install raphf and propro (SPL should be installed by default with PHP) You do not need php-http - this is a PEAR class for HTTP_Request. The PECL install on Ubuntu 14.04 requires the paths to zlib, libcurl and libevent: where to find zlib [/usr] : where to find libcurl [/usr] : where to find libevent [/usr] : In my instance, libcurl4-openssl-dev was not installed but the PECL package built successfully: checking for curl/curl.h... not found and this resulted in a segfault when checking for the extension after installation using php -i : $ php -i .... http HTTP Support => enabled Extension Version => 2.4.1 Used Library => Compiled => Linked libz => 1.2.8 => 1.2.8 libcurl => disabled => disabled libevent => 2.0.21-stable => Segmentation fault (core dumped) Once libcurl4-openssl-dev was installed and the package reinstalled using pecl install -f pecl_http, there were no segfaults: $ php -i http HTTP Support => enabled Extension Version => 2.4.1 Used Library => Compiled => Linked libz => 1.2.8 => 1.2.8 libcurl => 7.35.0 => 7.35.0 libevent => 2.0.21-stable => 2.0.21-stable Directive => Local Value => Master Value http.etag.mode => crc32b => crc32b Once installed, the class can be found via the 'http' namespace e.g http\Client\Request, not HTTPRequest. ---- Server IP: 72.52.91.14 Probable Submitter: 27.32.9.47 ---- Manual Page -- http://php.net/manual/en/http.install.php Edit -- https://master.php.net/note/edit/117004 Del: integrated -- https://master.php.net/note/delete/117004/integrated Del: useless -- https://master.php.net/note/delete/117004/useless Del: bad code -- https://master.php.net/note/delete/117004/bad+code Del: spam -- https://master.php.net/note/delete/117004/spam Del: non-english -- https://master.php.net/note/delete/117004/non-english Del: in docs -- https://master.php.net/note/delete/117004/in+docs Del: other reasons-- https://master.php.net/note/delete/117004 Reject -- https://master.php.net/note/reject/117004 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#202109) next »