php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #68263 pdo sqlite unknown tokenizer: unicode61
Submitted: 2014-10-19 08:08 UTC Modified: 2014-11-30 03:59 UTC
From: erictsau at gmail dot com Assigned:
Status: Closed Package: SQLite related
PHP Version: all OS: all
Private report: No CVE-ID: None
 [2014-10-19 08:08 UTC] erictsau at gmail dot com
Description:
------------
Php does not have full support for sqlite3 fts4.

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000]: General error: 1 unknown tokenizer: unicode61' in test.php:4
Stack trace:
#0 test.php(4): PDO->exec('create virtual ...')
#1 {main}
  thrown in test.php on line 4


add this compile flag to fix: -DSQLITE_ENABLE_FTS4_UNICODE61

Test script:
---------------
<?php
$pdo = new PDO('sqlite::memory:');
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
$pdo->exec('create virtual table a using fts4(s,c,b,tokenize=unicode61)');
$pdo->exec('insert into a values(0,9)');


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2014-10-19 08:50 UTC] erictsau at gmail dot com
-Operating System: Windows 8.1 +Operating System: all -PHP Version: 5.6.2 +PHP Version: all
 [2014-10-19 08:50 UTC] erictsau at gmail dot com
change version to all
 [2014-11-30 03:59 UTC] erictsau at gmail dot com
-Status: Open +Status: Closed
 [2014-11-30 03:59 UTC] erictsau at gmail dot com
Closed
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Oct 03 14:01:27 2024 UTC