php.net |  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
Votes:2
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 Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: coviex at gmail dot com
New email:
PHP Version: OS:

 

 [2014-07-22 17:04 UTC] coviex at gmail dot com
Description:
------------
Idk if they are connected but similar bug in sphinx itself (http://sphinxsearch.com/bugs/view.php?id=1662) 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 ''"

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-07-22 17:12 UTC] coviex at gmail dot com
Forget about http://sphinxsearch.com/bugs/view.php?id=1662. it is fixed.
 [2014-07-23 08:54 UTC] tony2001@php.net
Automatic comment on behalf of tony@daylessday.org
Revision: http://git.php.net/?p=pecl/search_engine/sphinx.git;a=commit;h=075b837dc5eaae964a1d8f3ba35c662a5f738fac
Log: fix bug #67669 (escapeString() is missing symbols)
 [2014-07-23 08:54 UTC] tony2001@php.net
-Status: Open +Status: Closed
 [2014-07-23 08:56 UTC] tony2001@php.net
-Assigned To: +Assigned To: tony2001
 [2014-07-23 08:56 UTC] tony2001@php.net
Fixed in Git, thanks!
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 31 23:01:28 2024 UTC