Problems with installing PECL extension sphinx-1.1.0 under PHP 5.4.10
????? The previous installation of Pecl extended sphinx-1.1.0 in PHP 5.2.16 and 5.3.17 environments was successful. But today in PHP 5.4.10 environment
An error was encountered while installing sphinx-1.1.0.
????? The error encountered in the PHP official web site as a bug is reflected by other users, see
????? https://bugs.php.net/bug.php?id=61241
?
????? How to resolve:
????? 1. The reply from PHP developer tony2001@php.net was fixed in the PHP update source code released by SVN.
?????? Reply Time is: 2012-06-12 19:17 UTC
?????? Because the PHP used is installed on a server system, this method is not appropriate.
????? 2. Refer to the reply of Andrew at cbtech Dot co dot uk , to sphinx-1.1.0 the source code modification, and then compile and install.
????? Here's what they reply to:
If you are sphinx.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.
?
????? Simple description of the edit installation method:
# TAR-XZF sphinx-1.1.0.tgz# CD sphinx-1.1.0# vi sphinx.c#./configure# make && make install
?
????? PECL extension of the source code manually compiled installation can be found in:
????? 1. http://www.php.net/manual/zh/install.pecl.phpize.php
????? 2. Mac php RabbitMQ amqp Extension Install Expansion pack compilation
?