Added PregMatchAllOptimizer.

Signed-off-by: Rack Lin <racklin@gmail.com>
Added PregMatchAllOptimizer. And PregMatchOptimizer with flags and offset parameters, fallback to PHP userland preg_match function.

Signed-off-by: Rack Lin <racklin@gmail.com>