Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead #5

Closed
4Ducky opened this issue Jun 17, 2015 · 3 comments

Comments

@4Ducky
Copy link

4Ducky commented Jun 17, 2015

Hey Buddy there are a new error with PHP 5.5

Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/u955216812/public_html/lib/db.php on line 55

@phoboslab
Copy link
Owner

Replace Line 55 of lib/db.php with the following:

$q = preg_replace_callback(
    '/:(\d+)/',
    function($m) use ($params) { 
        return self::quote($params[$m[1] - 1], $m[2]);
    },
    $q
);

I'm wary to update, since this needs at least php5.3, while the current Picturelicious version runs on php4. For now, the deprecation message can also be safely ignored.

@4Ducky
Copy link
Author

4Ducky commented Jun 17, 2015

Thank you buddy 👍

@radog
Copy link

radog commented Oct 1, 2015

Thank you, work fine!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants