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
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
34 + 50 = ?
Subscribe to this entry?

 
 [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-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 14:01:28 2024 UTC