PHP Installation Curl Problem

Source: Internet
Author: User
Tags zend

These two days in the server for PHP installation Curl expansion is encountering a problem. It was a bit tangled up ...

The system is CentOS 6.4 64-bit system, PHP version 5.3.3, due to the need to install curl expansion, but use 5.3.3 Source package Installation Curl expansion when make error:/php-5.3.3/ext/curl/interface.c:319: Warning: Initialization discards the qualification of the pointer target type
/php-5.3.3/ext/curl/interface.c: In the function ' Curl_write ':
/php-5.3.3/ext/curl/interface.c:930: Error: ' Zend_fcall_info ' does not have a member named ' Object_ptr '
/php-5.3.3/ext/curl/interface.c: In the function ' curl_progress ':
/php-5.3.3/ext/curl/interface.c:1006: Error: ' Zend_fcall_info ' does not have a member named ' Object_ptr '
/php-5.3.3/ext/curl/interface.c: In the function ' Curl_read ':
/php-5.3.3/ext/curl/interface.c:1080: Error: ' Zend_fcall_info ' does not have a member named ' Object_ptr '
/php-5.3.3/ext/curl/interface.c: In the function ' Curl_write_header ':
/php-5.3.3/ext/curl/interface.c:1157: Error: ' Zend_fcall_info ' does not have a member named ' Object_ptr '
Make : * * [Interface.lo] Error 1
--------------------------------------------

After using the php5.2.17 version of the source package installed Curl expansion.

#cd Php-5.2.17/ext/curl

#/usr/local/php/bin/phpize

#./configure--with-curl=/usr/local/curl/--with-php-config=/usr/local/php/bin/php-config

#make

#make Test

#make Install

Then add the following in the php.ini file:

"Curl"

Extension = "curl.so"


---------------------------------------------------
however, using PHP-V to see the following error is found:
PHP warning:php Startup:curl:Unable to initialize module
module compiled with module api=20060613
PHP compiled with module api=20090626
These options need to match
In Unknown on line 0
PHP warning:php Startup:curl:Unable to initialize module
module compiled with module api=20060613
PHP compiled with module api=20090626
These options need to match
In Unknown on line 0
PHP 5.3.3 (CLI) (Built:jul 20:35:47)
Copyright (c) 1997-2010 the PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies

The error message is that the PHP version and the module version are incompatible, and then you have been looking for data how to match. After trying a variety of methods without solution, I do not intend to see a foreign site written "Yum install xxx", after their own server try Yum install Php-curl, again use php-v no such error.

After that, the restart Nginx and php,curl extension can be used normally.

Sometimes encountered a mistake, a train of thought can not get through, may change a train of thought, often is a very simple command to solve the problem.



This article is from the "Leaf Petals open" blog, please be sure to keep this source http://linus1521.blog.51cto.com/1216391/1431515

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.