markguinn / silverstripe-email-helpers

Silverstripe extension containing SMTP mailer class and some other classes for HTML emails
31 stars 22 forks source link

PHP 7 Support - remove ereg() #32

Closed christopherdarling closed 4 years ago

christopherdarling commented 5 years ago

ereg() is removed in PHP 7.0 and should be replaced with something like preg_match() https://github.com/markguinn/silverstripe-email-helpers/blob/master/code/SmtpMailer.php#L356

Although, as pointed out here (https://github.com/markguinn/silverstripe-email-helpers/issues/3) it doesn't look as though this code actually does anything, so perhaps could be removed.