Bug #68263 [NEW]: pdo sqlite unknown tokenizer: unicode61
From: erictsau at gmail dot com
Operating system: Windows 8.1
PHP version: 5.6.2
Package: SQLite related
Bug Type: Bug
Bug description:pdo sqlite unknown tokenizer: unicode61
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)');
--
Edit bug report at https://bugs.php.net/bug.php?id=68263&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=68263&r=trysnapshot54
Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=68263&r=trysnapshot55
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=68263&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=68263&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=68263&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=68263&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=68263&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=68263&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=68263&r=support
Expected behavior: https://bugs.php.net/fix.php?id=68263&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=68263&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=68263&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=68263&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=68263&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=68263&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=68263&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=68263&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=68263&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=68263&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=68263&r=mysqlcfg
Thread (3 messages)
- erictsau at gmail dot com