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
?