TIP: Use Markdown or, <pre> for multi line code blocks / <code> for inline code.
These forums are read-only and for archival purposes only!
Please join our new forums at discourse.kohanaframework.org
preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in Kohana 3.2 HELP!
  • preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead
    ~ MODPATH/database/classes/kohana/database.php [ 525
    ...
    elseif (strpos($column, '"') !== FALSE)
    {
    // Quote the column in FUNC("column") identifiers
    $column = preg_replace('/"(.+?)"/e', '$this->quote_column("$1")', $column);
    }

    please some help, how can i fix this?
  • this problem is in php 5.5.3 .. i recently migrate my system from old php version to this.. help me!
  • what version of Kohana are you using?
  • We being using kohana 3.2 but we start using 3.2.2 since yesterday but the problem persist:
    preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

    // Quote the column in FUNC("column") identifiers
    $column = preg_replace('/"(.+?)"/e', '$this->quote_column("$1")', $column);
  • @Zeelot3k I have sent a pull request on github for 3.2.X branch

    @hcasanova you can get my patched database module from https://github.com/dineshah/database
  • Ohhh ok @dineshah i will try! Thanks a lot!!!

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion