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

PHP 7.3 issue / fix: preg_replace(): Compilation failed: invalid range #456

Open
portalzine opened this issue Feb 4, 2019 · 3 comments
Open

Comments

@portalzine
Copy link

crayon_langs.class.php Line 340:

return preg_replace('/[^\w-+#]/msi', '', $id);
becomes
return preg_replace('/[^\w\-+#]/msi', '', $id);

Regards
Alex

@0x501D
Copy link

0x501D commented Feb 4, 2019

PR will fix it:
Fix compatibility with PHP 7.3 #451

@aadler
Copy link

aadler commented May 12, 2020

I got the following just now too:

[12-May-2020 19:12:22 UTC] PHP Warning:  preg_replace(): Compilation failed: invalid range in character class at offset 4 in ***/wp-content/plugins/crayon-syntax-highlighter/crayon_langs.class.php on line 340

@aadler
Copy link

aadler commented May 13, 2020

This project is defunct; switch to Urvanov Syntax Highlighter (Github here) which is Crayon brought up to date.

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