php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #58775 pecl_http 1.6.4
Submitted: 2009-07-24 17:06 UTC Modified: 2009-07-27 10:05 UTC
From: bevans at adicio dot com Assigned: mike (profile)
Status: Closed Package: pecl_http (PECL)
PHP Version: 5.1.6 OS: Centos 4.4
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: bevans at adicio dot com
New email:
PHP Version: OS:

 

 [2009-07-24 17:06 UTC] bevans at adicio dot com
Description:
------------
pecl version
PEAR Version: 1.8.1
PHP Version: 5.1.6
Zend Engine Version: 2.1.0
Running on: Linux  2.6.9-42.0.2.ELsmp #1 SMP Wed Aug 23 00:17:26 CDT 2006 i686
CentOS release 4.4 (Final)


pecl_http-1.6.4 (svn revision 284719 tested also) fails to compile on some machines with the error:

/usr/local/src/pecl_http-1.6.4/http_message_object.c: In function `_http_message_object_get_prop_ptr':
/usr/local/src/pecl_http-1.6.4/http_message_object.c:421: error: structure has no member named `ce'
/usr/local/src/pecl_http-1.6.4/http_message_object.c: In function `_http_message_object_read_prop':
/usr/local/src/pecl_http-1.6.4/http_message_object.c:438: error: structure has no member named `ce'
/usr/local/src/pecl_http-1.6.4/http_message_object.c: In function `_http_message_object_write_prop':
/usr/local/src/pecl_http-1.6.4/http_message_object.c:548: error: structure has no member named `ce'
make: *** [http_message_object.lo] Error 1


The extension compiles fine on my centos 5 servers:

[root@ce5-64bit redhat]# php -v
PHP 5.2.8 (cli) (built: Apr  8 2009 16:36:03) 
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

version 1.6.3 compiles fine on all machines I tested (redhat8, centos4 & centos 5)



I ran a diff between 1.6.3 & 1.6.4.  Here is, what little old me, *thinks* may be the issue.
(diff ../pecl_http-1.6.3/http_message_object.c http_message_object.c)

--SNIP--
> 
425c438
<       if (!pinfo) {
---
>       if (!pinfo || pinfo->ce != http_message_object_ce) {
535c548
<       if (!pinfo) {
---
>       if (!pinfo || pinfo->ce != http_message_object_ce) {
805c818
--SNIP--


Maybe zend related?



Reproduce code:
---------------
untar pecl_http-1.6.4
phpize
./configure
make

Expected result:
----------------
extension should compile.

Actual result:
--------------
 gcc -I. -I/usr/local/src/pecl_http-1.6.4 -DPHP_ATOM_INC -I/usr/local/src/pecl_http-1.6.4/include -I/usr/local/src/pecl_http-1.6.4/main -I/usr/local/src/pecl_http-1.6.4 -I/usr/local/include/php -I/usr/local/include/php/main -I/usr/local/include/php/TSRM -I/usr/local/include/php/Zend -I/usr/local/include/php/ext -I/usr/local/include/php/ext/hash -DHAVE_CONFIG_H -g -O2 -c /usr/local/src/pecl_http-1.6.4/http_message_object.c  -fPIC -DPIC -o .libs/http_message_object.o
/usr/local/src/pecl_http-1.6.4/http_message_object.c: In function `_http_message_object_get_prop_ptr':
/usr/local/src/pecl_http-1.6.4/http_message_object.c:421: error: structure has no member named `ce'
/usr/local/src/pecl_http-1.6.4/http_message_object.c: In function `_http_message_object_read_prop':
/usr/local/src/pecl_http-1.6.4/http_message_object.c:438: error: structure has no member named `ce'
/usr/local/src/pecl_http-1.6.4/http_message_object.c: In function `_http_message_object_write_prop':
/usr/local/src/pecl_http-1.6.4/http_message_object.c:548: error: structure has no member named `ce'

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2009-07-27 10:05 UTC] mike@php.net
This bug has been fixed in CVS.

In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pecl.php.net.

In case this was a pecl.php.net website problem, the change will show
up on the website in short time.
 
Thank you for the report, and for helping us make PECL better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Dec 21 12:01:31 2024 UTC