php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67733 Compile error with libevent 2.x
Submitted: 2014-08-01 04:28 UTC Modified: 2014-08-01 09:10 UTC
From: paul+phpbugs at earth2me dot com Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.5.15 OS: Ubuntu 14.04 x64
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: paul+phpbugs at earth2me dot com
New email:
PHP Version: OS:

 

 [2014-08-01 04:28 UTC] paul+phpbugs at earth2me dot com
Description:
------------
pecl_http doesn't compile with libevent2; looks like a syntax error in a header:

#define PHP_HTTP_EVENT_VERSION ""2.0.21-stable""

As you can see, the quotes are doubled.

Test script:
---------------
sudo pecl install pecl_http

Actual result:
--------------
In file included from /tmp/pear/temp/pecl_http/php_http_api.h:17:0,
                 from /tmp/pear/temp/pecl_http/php_http.c:13:
/tmp/pear/temp/pecl_http/php_http.c: In function 'zm_info_http':
./config.h:93:34: error: too many decimal points in number
 #define PHP_HTTP_EVENT_VERSION ""2.0.21-stable""
                                  ^
/tmp/pear/temp/pecl_http/php_http.c:242:4: note: in expansion of macro 'PHP_HTTP_EVENT_VERSION'
    PHP_HTTP_EVENT_VERSION,
    ^
./config.h:93:34: error: expected ')' before numeric constant
 #define PHP_HTTP_EVENT_VERSION ""2.0.21-stable""
                                  ^
/tmp/pear/temp/pecl_http/php_http.c:242:4: note: in expansion of macro 'PHP_HTTP_EVENT_VERSION'
    PHP_HTTP_EVENT_VERSION,
    ^
make: *** [php_http.lo] Error 1
ERROR: `make' failed


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-08-01 08:20 UTC] mike@php.net
-Assigned To: +Assigned To: mike
 [2014-08-01 09:10 UTC] mike@php.net
-Status: Assigned +Status: Closed
 [2014-08-01 09:10 UTC] mike@php.net
Fixed in 2.1.0RC1
 
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Mon Oct 03 19:03:44 2022 UTC