SphinxQL doesn't work with prepared statements?
问题 I found several threads on the Sphinx forum discussing this issue: http://sphinxsearch.com/forum/view.html?id=5974 My function for creating a DB connection: function createSphinxPdo() { try { $options = [ \PDO::ATTR_EMULATE_PREPARES => true, \PDO::ATTR_ERRMODE => \PDO::ERRMODE_EXCEPTION ]; $db = new \PDO("mysql:host=127.0.0.1;port=3308;charset=utf8mb4", null, null, $options); } catch (\PDOException $e) { throw $e; } return $db; } This works fine: $sphinxDb = createSphinxPdo(); $stmt =