Skip to content

Instantly share code, notes, and snippets.

@bencorlett
Created September 8, 2014 06:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bencorlett/3afaaa3613e39b572492 to your computer and use it in GitHub Desktop.
Save bencorlett/3afaaa3613e39b572492 to your computer and use it in GitHub Desktop.
Magento PHP 5.6 fixes

Find / replace (using a regular expression):

(iconv_set_encoding.*?\))

With:

(PHP_VERSION_ID < 50600) ? $0 : ini_set('default_charset', 'UTF-8');

@Schrank
Copy link

Schrank commented May 30, 2015

You should avoid the ; in the replace string, it is only needed if you search for it beforehand :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment