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
View Add Comment Developer Edit
Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know!
Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem:
37 - 34 = ?
Subscribe to this entry?

 
 [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

Add a Patch

Pull Requests

Add a Pull Request

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 Apr 25 08:01:28 2024 UTC