Support » Plugin: Post SMTP Mailer/Email Log » Replace split() with preg_split() for PHP 7

  • awijasa

    (@awijasa)


    Hello,

    I ran a PHP Compatibility Checker (https://wordpress.org/plugins/php-compatibility-checker/) to check for PHP 7 compatibility. It is listing a couple errors related to Post SMTP. Both are about the use of split instead of preg_split.

    On /Postman/Postman-Connectivity-Test/registered-domain-libs-master/generateEffectiveTLDs.php:

    Line 153: Replace $lines = split("\n", $list); with $lines = preg_split("\n", $list);

    Line 179: Replace $tldParts = split('\.', $line); with $tldParts = preg_split('\.', $line);

    Thanks,

    @awijasa

Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Replace split() with preg_split() for PHP 7’ is closed to new replies.