You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The problem appears only in case parameter contains \ as last symbol. Seems it's in the yii\sphinx\MatchBuilder::parseParams(). When changing preg_replace() to str_replace() it works but it seems it's not correct to use str_replace() based on comment:
What steps will reproduce the problem?
The problem appears only in case parameter contains
\
as last symbol. Seems it's in theyii\sphinx\MatchBuilder::parseParams()
. When changingpreg_replace()
tostr_replace()
it works but it seems it's not correct to usestr_replace()
based on comment:What's expected?
result set
What do you get instead?
Exception 'yii\db\Exception' with message 'SQLSTATE[42000]: Syntax error or access violation: ...unexpected $end near
Additional info
The text was updated successfully, but these errors were encountered: