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
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: erictsau at gmail dot com
New email:
PHP Version: OS:

 

 [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 May 23 06:01:35 2024 UTC