Performance:
/home/sphinx-1.1.0/sphinx.c:in function ' Php_sphinx_client_read_property ':
/home/sphinx-1.1.0/sphinx.c:105:2: Error:too few arguments to function ' Std_hnd->read_property '
/home/sphinx-1.1.0/sphinx.c:in function ' zim_sphinxclient_updateattributes ':
/home/sphinx-1.1.0/sphinx.c:1040:6: warning:passing argument 2 of ' memset ' makes integer from pointer without a cast [ENA Bled by default]
/usr/include/x86_64-linux-gnu/bits/string3.h:77:1: note:expected ' int ' but argument is of type ' void * '
/home/sphinx-1.1.0/sphinx.c:in function ' Zm_startup_sphinx ':
/home/sphinx-1.1.0/sphinx.c:1888:43:warning:assignment from incompatible pointer type [enabled by default]
Sphinx-1.1.0/sphinx.c:105:2: Error:too Few arguments
Solve
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 [email protected] 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
Good text to the top concern me to collect the article
Install PHP Sphinx extension sphinx-1.1.0/sphinx.c:105:2: Error:too few arguments error