Bug #74050 [Fbk]: missing constants definition CURLPIPE_MULTIPLEX, CURL_HTTP_VERSION_2...etc.
| From: | requinix@php.net | Date: | Thu, 16 Feb 2017 11:31:33 +0000 |
| Subject: | Bug #74050 [Fbk]: missing constants definition CURLPIPE_MULTIPLEX, CURL_HTTP_VERSION_2...etc. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-207400@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=74050&edit=1
ID: 74050
Updated by: requinix@php.net
Reported by: david dot feng at xflying dot com
Summary: missing constants definition CURLPIPE_MULTIPLEX,
CURL_HTTP_VERSION_2...etc.
Status: Feedback
Type: Bug
Package: cURL related
Operating System: Ubuntu trusty
PHP Version: 7.1.1
Block user comment: N
Private report: N
New Comment:
@thibault: They are also available for 7.0.15. PHP (or just the curl extension) must be *compiled*
with libcurl >= 7.43 - it is not enough to have that version available at runtime. Since
deb.sury.org does not provide its own libcurl, its php7.0-curl would be compiled against what is
available in Jessie: 7.38.
Previous Comments:
------------------------------------------------------------------------
[2017-02-16 10:26:45] thibault dot vlacich at gmail dot com
I have the exact same problem.
Notice: Use of undefined constant CURLPIPE_MULTIPLEX - assumed 'CURLPIPE_MULTIPLEX'
Notice: Use of undefined constant CURL_HTTP_VERSION_2 - assumed 'CURL_HTTP_VERSION_2'
I have curl 7.46.0. Here's interesting outputs from phpinfo():
PHP Version 7.0.15-1+0~20170120094752.20+jessie~1.gbpe03972
curl
cURL support enabled
cURL Information 7.46.0
HTTP2 Yes
SSL Version OpenSSL/1.0.2k
------------------------------------------------------------------------
[2017-02-06 06:44:59] requinix@php.net
Those constants are available in PHP but they require libcurl >= 7.43. Ubuntu Trusty only comes
with libcurl 7.35.
------------------------------------------------------------------------
[2017-02-06 06:12:32] david dot feng at xflying dot com
Description:
------------
I've installed php7.1-fpm, php7.1-curl on my Unubtu trusty with Nginx 1.11.9.
I'm working on a HTTP2 related project and called
curl_multi_setopt($mh, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);
it reports that CURLPIPE_MULTIPLEX is undefined.
and I need to use CURL_HTTP_VERSION_2_0 instead of CURL_HTTP_VERSION_2 which is different from the
manual's described here:
http://php.net/manual/en/curl.constants.php
Test script:
---------------
curl_multi_setopt($mh, CURLMOPT_PIPELINING, CURLPIPE_MULTIPLEX);
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=74050&edit=1