|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2009-07-27 10:05 UTC] mike@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 05:00:01 2025 UTC |
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'