Problems related to installing PECL extension sph1_1.1.0 in PHP5.4.10

Source: Internet
Author: User
QUESTION ????? In PHP5.2.16 and 5.3.17 environments, the PECL extension sph1_1.1.0 is successfully installed. however, when installing sph0000-1.1.0 in the PHP5.4.10 environment today, problems encountered when installing the PECL extension sph0000-1.1.0 in PHP 5.4.10

????? Previously, PECL extension sph0000-1.1.0 was successfully installed in PHP 5.2.16 and 5.3.17, but today in PHP 5.4.10

An error occurred while installing sph1_1.1.0.

????? Other users have responded to the error on the PHP official website as a bug. See

????? Https://bugs.php.net/bug.php? Id = 61241

?

????? Solution:

????? 1. PHP developersTony2001@php.netIn the PHP update source code released by SVN.

?????? The reply time is:UTC

?????? Because PHP is installed on the server system, this method is not suitable.

????? 2. refer to the respondentAndrew at cbtech dot co dot ukTo modify the source code of sph0000-1.1.0, and then compile and install it.

????? The reply content is as follows:

If you change line 105 of sphpipeline. c from:
Retval = std_hnd-> read_property (object, member, type TSRMLS_CC );
To
Retval = std_hnd-> read_property (object, member, type TSRMLS_CC, NULL );
It compiles and seems to work.

?

????? Edit the installation method description:

# tar -xzf sphinx-1.1.0.tgz# cd sphinx-1.1.0# vi sphinx.c# ./configure# make && make install

?

????? For manual compilation and installation of PECL extension source code, see:

????? 1. http://www.php.net/manual/zh/install.pecl.phpize.php

????? 2. PHP RabbitMQ amqp extension installation extension package compilation in mac

?

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.