|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #67669 SphinxClient::escapeString does not escape "<"
Submitted: 2014-07-22 17:04 UTC Modified: 2014-07-23 09:12 UTC
Avg. Score:3.0 ± 0.0
Reproduced:0 of 0 (0.0%)
From: coviex at gmail dot com Assigned: tony2001 (profile)
Status: Closed Package: sphinx (PECL)
PHP Version: 5.5.14 OS: ubuntu
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: coviex at gmail dot com
New email:
PHP Version: OS:


 [2014-07-22 17:04 UTC] coviex at gmail dot com
Idk if they are connected but similar bug in sphinx itself ( is still not fixed in "Sphinx 2.1.9-id64-release (rel21-r4761)"

Test script:
$s = new SphinxClient;
$a = $s->escapeString('&');
assert($a === '\&');
$b = $s->escapeString('<');
assert($a === '\<');

Expected result:
no errors, zero search results

Actual result:
when escaped string is passed to search it throws "index search: syntax error, unexpected $end near ''"


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-22 17:12 UTC] coviex at gmail dot com
Forget about it is fixed.
 [2014-07-23 08:54 UTC]
Automatic comment on behalf of
Log: fix bug #67669 (escapeString() is missing symbols)
 [2014-07-23 08:54 UTC]
-Status: Open +Status: Closed
 [2014-07-23 08:56 UTC]
-Assigned To: +Assigned To: tony2001
 [2014-07-23 08:56 UTC]
Fixed in Git, thanks!
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Tue Nov 29 21:03:58 2022 UTC