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

line 458 #16

Open
Orayi opened this issue Dec 13, 2014 · 1 comment
Open

line 458 #16

Orayi opened this issue Dec 13, 2014 · 1 comment

Comments

@Orayi
Copy link

Orayi commented Dec 13, 2014

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

Think it should be something like:

preg_replace_callback("/=([0-9A-F][0-9A-F])/", function($matches){ chr(hexdec($matches[0])); } , $line);

but not tested yet.

@rbairwell
Copy link

Needed a return adding in the function and $decoded.= adding at the start, but it all seems good to me (and I've made a pull request to fix this). Does mean it'll need PHP 5.3 at a minimum.

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

2 participants