Issue "preg_replace deprecated" with eXtplorer -> solution

Hi all,

did you get error message “preg_replace deprecated”?

Solution/workaround:

  1. find file which produces this error message.
  2. find “preg_replace” in code
  3. put a ‘@’ before - example @preg_replace

Regards,

climb4fun

That just suppresses the message, it does not fix the problem …

“Deprecated” means will be removed in a future version of PHP – so code that still uses something that is deprecated will stop to work once that happens.

And btw., for simply using preg_replace you will not get that message – preg_replace itself is not deprecated at all.