PHP 5.5.x deprecates preg_replace() causing scripts to crash with error ...

...500

Kohana 3.2.2 with database module generates error 500 on PHP 5.5.x (tested on Ubuntu 13.10 with PHP 5.5.3)