Bug #60917 [Com]: pecl_http installation failed caused by Zend API change: default_properties
| From: | rob at affclicks dot com | Date: | Sat, 18 Feb 2012 05:21:14 +0000 |
| Subject: | Bug #60917 [Com]: pecl_http installation failed caused by Zend API change: default_properties | ||
| References: | 1 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-9143@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=60917&edit=1
ID: 60917
Comment by: rob at affclicks dot com
Reported by: yos dot asakawa at gmail dot com
Summary: pecl_http installation failed caused by Zend API
change: default_properties
Status: Assigned
Type: Bug
Package: PECL
Operating System: CentOS 5.7
PHP Version: 5.4.0RC6
Assigned To: mike
Block user comment: N
Private report: N
New Comment:
Just a note to other people visiting this that the current SVN trunk (1.7.2) seems
to have fixes for this that worked for me, thanks.
Just a question because I couldn't find it elsewhere, I am pretty much just using
this for the http_build_url function, has this been removed without replacement in
v2? Going forward I could find/ write a replacement but while it is possible
better to use this one that is tried and tested.
Previous Comments:
------------------------------------------------------------------------
[2012-01-30 19:31:10] yos dot asakawa at gmail dot com
Hi Mike,
Thanks for comment.
You are right, I finally failed to install because of output handler
problem. And I didn't know that I must use version 2.0 of pecl_http
with php 5.3.99 and over.
I successfully installed pecl_http 2.0.0_dev4.
But I can't use http_build_url() with an error.
"PHP Fatal error: Call to undefined function http_build_url()"
Can I use http_build_url() with pecl_http 2.0?
Was my install operations bellow invalid?
===================================================
# wget http://pecl.php.net/get/pecl_http-2.0.0dev4.tgz
# cd pecl_http-2.0.0dev4
# phpize
# ./configure
# make
# make test
# make install
# ls -l /usr/lib64/php/modules/http.so
-rwxr-xr-x 1 root root 1879562 JAN 31 03:58 /usr/lib64/php/modules/http.so
add extension_dir and extension entry
# diff php.ini php.ini.old
731d730
< extension_dir = /usr/lib64/php/modules
862d860
< extension=http.so
===================================================
Thanks.
------------------------------------------------------------------------
[2012-01-30 13:18:14] mike@php.net
Thank you very much for the patches, but I guess these wouldn't suffice to make
pecl_http-v1 build with trunk or PHP_5_4.
Did it succeed for you? What about the output handlers, etc.?
------------------------------------------------------------------------
[2012-01-28 13:32:29] yos dot asakawa at gmail dot com
Description:
------------
Installing pecl_http shows below errors.
It seems to be caused by Bug #59731 (Zend API change: default_properties).
# pecl install pecl_http
downloading pecl_http-1.7.1.tgz ...
...
/var/tmp/pecl_http/http_message_object.c:517: error: 'zend_class_entry' has no
member named 'default_properties'
/var/tmp/pecl_http/http_message_object.c:518: error: 'zend_class_entry' has no
member named 'default_properties'
Test script:
---------------
# pecl install pecl_http
Expected result:
----------------
No error occurs. Installation finished successfully.
Actual result:
--------------
Installation pecl_http failed.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=60917&edit=1