Skip to content

PHP7.0 compatibility (preg_replace) #98

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

Open
C1n opened this issue Jul 3, 2015 · 2 comments
Open

PHP7.0 compatibility (preg_replace) #98

C1n opened this issue Jul 3, 2015 · 2 comments

Comments

@C1n
Copy link

C1n commented Jul 3, 2015

PHP7 is not compatible anymore with the preg_replace function.

All preg_replace functions should be replaced by preg_replace_callback()

@hbcafe
Copy link

hbcafe commented Jul 20, 2015

I believe only the /e modifier support has been removed, not the call itself.

   7.0.0    Support for the /e modifier has been removed. Use preg_replace_callback() instead.

See preg_replace > Changelog.

@ahoehne
Copy link

ahoehne commented Nov 17, 2015

exactly @hbcafe - /e modifier is allowing you to run eval() code - so the update of preg_replace() is just ensuring more security.

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