Menu
blog.headdesk.me
blog.headdesk.me

Upgrade to php-7.3

Posted on 2020/01/062020/01/06

That caused my WordPress plugin Crayon Syntax Highlighter to fail. Some googling suggests php-7.3 switched to pcre2, which is more restrictive in terms of escaping special characters.

Luckily, this is very easy to fix. Edit crayon-syntax-highlighter/crayon_langs.class.php, look for preg_match. Any patterns in that function containing the dash character (-) now needs to be escaped with a bashslash (\).

facebookShare on Facebook
TwitterTweet

Full text search

Recent Posts

  • Dumping AWS Organization tree
  • Free is the most expensive
  • Terraform conditional resource and blocks
  • Upgrade Ubuntu 16.04 to latest release
  • Inspect and control network traffic on AWS
  • aws (8)
  • coffee (1)
  • headfi (1)
  • linux (7)
  • others (55)
  • security (2)
  • tech (36)
  • wordpress (2)

apache aws awscli azure backup cloud coffee coreos distributed filesystem docker ec2 EL8 elasticcache etckeeper featured heartbleed kernel linux mail meltdown mysql php pine python rdp rds Redhat Red Hat RHEL RHEL7 rpm Ryzen snapshot spectre SSL systemd tech terraform ubuntu ubuntu upgrade vector vpn wordpress xtreemfs yum

©2022 blog.headdesk.me | Powered by SuperbThemes & WordPress