horst-n / WireMailSmtp

ProcessWire: Extension to the new WireMail baseclass (since PW 2.4.1)
15 stars 9 forks source link

PHP 7.4 deprecated warning in email_message.php #14

Closed esszett closed 2 years ago

esszett commented 3 years ago

…is it safe to just remove this part of the condition?

1× PHP Deprecated: Function get_magic_quotes_runtime() is deprecated in .../smtp_classes/email_message.php:907

if((GetType($size)=="integer"&& strlen($body)>$size) || (function_exists("get_magic_quotes_runtime") && get_magic_quotes_runtime())) $body=StripSlashes($body);

szabeszg commented 2 years ago

Hello Horst,

Any chance you fix this?

horst-n commented 2 years ago

@szabeszg As far as I understand, Deprecation warnings are hints to developers when error level is set to E_ALL or likely. But this is nothing you use in production. Also I do not get this with PHP 7.4+ on my local dev machine. ??