according to http://www.sphinxsearch.com/forum/view.html?id=5225:
this function doesn't really do what one would expect (mysql_real_escape_string style) and is more meant to escape individual keywords...
my experience it works better to manually escape reserved characters, for example:
<?php
$string='make big $ online';
$escaped=str_replace('$','\\$',$string);
?>
SphinxClient::escapeString
(PECL sphinx >= 0.1.0)
SphinxClient::escapeString — Protège les caractères spéciaux
Description
public string SphinxClient::escapeString
( string
$string
)Protège les caractères qui sont traités de manière particulière par l'analyseur.
Liste de paramètres
-
string -
La chaîne à protéger.
Valeurs de retour
Retourne la chaîne protégée.
xxxbunker dot com ¶
3 years ago
