No description, website, or topics provided.
C PHP Shell
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
example
test-performance
tests
.gitignore
EXPERIMENTAL
README.rst
config.m4
dql_tokenizer.c
php_dql_tokenizer.h

README.rst

README

What is php-dql-tokenizer?

This extension is for improving performance of Doctrine_Query_Tokenizer.

INSTALL

Execute the following commands:

$ phpize
$ ./configure
$ make
# make install

Then add the following to your php.ini:

[dql_tokenizer]
extension=dql_tokenizer.so

How To Use

This extension provides functions that corresponds to the methods of the Doctrine_Query_Tokenizer class.

So you need to define a new tokenizer classes to use this extension.

First, you write the following code in your query class:

if (function_exists('dql_tokenize_query'))
{
  $this->_tokenizer = new myQueryTokenizer();
}

Next, you define a new tokenizer class. You can get the example class file from "example/myQueryTokenizer.class.php".

Credits

Kousuke Ebihara
ebihara@php.net http://co3k.org/

TODO

  • There are many duplicated codes (e.g. iterating hash tables)
  • Some functions are tooooooooooo long