Title: PHP 7 Support
Last modified: February 21, 2018

---

# PHP 7 Support

 *  Resolved [nathanuk](https://wordpress.org/support/users/nathanuk/)
 * (@nathanuk)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-7-support-34/)
 * Hey Alain,
 * I am trying to use this with PHP 7.0, but it seems the version of swiftmail you
   use is too old. Would you mind bumping that?
 * This is the results I got from the wp-php-compatability plugin:
 * Name: WP Cassify
 * FILE: /path/to/wp/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/
   lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
    ———————————————————————————————————————————————————————————————–
   FOUND 1 ERROR AFFECTING 1 LINE ———————————————————————————————————————————————————————————————–
   526 | ERROR | Bitwise shifts by negative number will throw an ArithmeticError
   in PHP 7.0 ———————————————————————————————————————————————————————————————–
 * FILE: /path/to/wp/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/
   lib/classes/Swift/Transport/SimpleMailInvoker.php
    ————————————————————————————————————————————————————————————
   FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ————————————————————————————————————————————————————————————
   33 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed
   since PHP 5.4 ————————————————————————————————————————————————————————————
 * FILE: /path/to/wp/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/
   lib/classes/Swift/KeyCache/DiskKeyCache.php
    ——————————————————————————————————————————————————————————
   FOUND 4 ERRORS AFFECTING 4 LINES ——————————————————————————————————————————————————————————
   180 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3
   and removed since PHP 5.4 187 | ERROR | INI directive ‘magic_quotes_runtime’ 
   is deprecated since PHP 5.3 and removed since PHP 5.4 207 | ERROR | INI directive‘
   magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4 213
   | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and
   removed since PHP 5.4 ——————————————————————————————————————————————————————————
 * FILE: /path/to/wp/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/
   lib/classes/Swift/ByteStream/FileByteStream.php
    ———————————————————————————————————————————————————————————-
   FOUND 2 ERRORS AFFECTING 2 LINES ———————————————————————————————————————————————————————————-
   87 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3
   and removed since PHP 5.4 91 | ERROR | INI directive ‘magic_quotes_runtime’ is
   deprecated since PHP 5.3 and removed since PHP 5.4 ———————————————————————————————————————————————————————————-
 * Thanks,
 * Nathan.
    -  This topic was modified 8 years, 3 months ago by [nathanuk](https://wordpress.org/support/users/nathanuk/).
    -  This topic was modified 8 years, 3 months ago by [nathanuk](https://wordpress.org/support/users/nathanuk/).

Viewing 5 replies - 1 through 5 (of 5 total)

 *  [george504](https://wordpress.org/support/users/george504/)
 * (@george504)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-7-support-34/#post-10000679)
 * Hello,
 * I’ve tested against PHP 7.1 and came up with similar issues in swiftmailer. If
   you could bump that up it will probably fix issues with PHP 7 compatibility.
 * Thanks, George
 * =========================
 * Results against PHP 7.1:
 * FILE: /code/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/
   lib/classes/Swift/ByteStream/FileByteStream.php
    ——————————————————————————————————————————————————————————
   FOUND 2 ERRORS AFFECTING 2 LINES ——————————————————————————————————————————————————————————
   87 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3
   and removed since PHP 5.4 91 | ERROR | INI directive ‘magic_quotes_runtime’ is
   deprecated since PHP 5.3 and removed since PHP 5.4 ——————————————————————————————————————————————————————————
 * FILE: /code/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/
   lib/classes/Swift/Transport/Esmtp/Auth/NTLMAuthenticator.php
    ——————————————————————————————————————————————————————————————-
   FOUND 1 ERROR AND 12 WARNINGS AFFECTING 4 LINES ——————————————————————————————————————————————————————————————-
   526 | ERROR | Bitwise shifts by negative number will throw an ArithmeticError
   in PHP 7.0 578 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use
   openssl (preferred) or pecl/mcrypt once available instead 578 | WARNING | Function
   mcrypt_module_open() is deprecated since PHP 7.1; Use OpenSSL instead 578 | WARNING
   | The constant “MCRYPT_DES” is deprecated since PHP 7.1 579 | WARNING | Extension‘
   mcrypt’ is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once
   available instead 579 | WARNING | Function mcrypt_generic_init() is deprecated
   since PHP 7.1; Use OpenSSL instead 579 | WARNING | Extension ‘mcrypt’ is deprecated
   since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead 
   579 | WARNING | Function mcrypt_create_iv() is deprecated since PHP 7.1; Use 
   random_bytes() or OpenSSL instead 579 | WARNING | Extension ‘mcrypt’ is deprecated
   since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead 
   579 | WARNING | Function mcrypt_enc_get_iv_size() is deprecated since PHP 7.1;
   Use OpenSSL instead 579 | WARNING | The constant “MCRYPT_DEV_RANDOM” is deprecated
   since PHP 7.1 581 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1;
   Use openssl (preferred) or pecl/mcrypt once available instead 581 | WARNING |
   Function mcrypt_generic() is deprecated since PHP 7.1; Use OpenSSL instead ——————————————————————————————————————————————————————————————-
 * FILE: /code/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/
   lib/classes/Swift/Transport/SimpleMailInvoker.php
    ——————————————————————————————————————————————————————————–
   FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ——————————————————————————————————————————————————————————–
   33 | WARNING | INI directive ‘safe_mode’ is deprecated since PHP 5.3 and removed
   since PHP 5.4 ——————————————————————————————————————————————————————————–
 * FILE: /code/wp-content/plugins/wp-cassify/classes/vendor/swiftmailer/swiftmailer/
   lib/classes/Swift/KeyCache/DiskKeyCache.php
    ————————————————————————————————————————————————————————–
   FOUND 4 ERRORS AFFECTING 4 LINES ————————————————————————————————————————————————————————–
   180 | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3
   and removed since PHP 5.4 187 | ERROR | INI directive ‘magic_quotes_runtime’ 
   is deprecated since PHP 5.3 and removed since PHP 5.4 207 | ERROR | INI directive‘
   magic_quotes_runtime’ is deprecated since PHP 5.3 and removed since PHP 5.4 213
   | ERROR | INI directive ‘magic_quotes_runtime’ is deprecated since PHP 5.3 and
   removed since PHP 5.4 ————————————————————————————————————————————————————————–
 * FILE: /code/wp-content/plugins/wp-cassify/classes/wp_cassify_utils.php
    ——————————————————————————————————————————-
   FOUND 0 ERRORS AND 22 WARNINGS AFFECTING 14 LINES ——————————————————————————————————————————-
   508 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (
   preferred) or pecl/mcrypt once available instead 508 | WARNING | Function mcrypt_encrypt()
   is deprecated since PHP 7.1; Use OpenSSL instead 509 | WARNING | The constant“
   MCRYPT_RIJNDAEL_256” is deprecated since PHP 7.1 512 | WARNING | The constant“
   MCRYPT_MODE_ECB” is deprecated since PHP 7.1 513 | WARNING | Extension ‘mcrypt’
   is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available
   instead 513 | WARNING | Function mcrypt_create_iv() is deprecated since PHP 7.1;
   Use random_bytes() or OpenSSL instead 514 | WARNING | Extension ‘mcrypt’ is deprecated
   since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead 
   514 | WARNING | Function mcrypt_get_iv_size() is deprecated since PHP 7.1; Use
   OpenSSL instead 514 | WARNING | The constant “MCRYPT_RIJNDAEL_256” is deprecated
   since PHP 7.1 514 | WARNING | The constant “MCRYPT_MODE_ECB” is deprecated since
   PHP 7.1 515 | WARNING | The constant “MCRYPT_RAND” is deprecated since PHP 7.1
   536 | WARNING | Extension ‘mcrypt’ is deprecated since PHP 7.1; Use openssl (
   preferred) or pecl/mcrypt once available instead 536 | WARNING | Function mcrypt_decrypt()
   is deprecated since PHP 7.1; Use OpenSSL instead 537 | WARNING | The constant“
   MCRYPT_RIJNDAEL_256” is deprecated since PHP 7.1 540 | WARNING | The constant“
   MCRYPT_MODE_ECB” is deprecated since PHP 7.1 541 | WARNING | Extension ‘mcrypt’
   is deprecated since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available
   instead 541 | WARNING | Function mcrypt_create_iv() is deprecated since PHP 7.1;
   Use random_bytes() or OpenSSL instead 542 | WARNING | Extension ‘mcrypt’ is deprecated
   since PHP 7.1; Use openssl (preferred) or pecl/mcrypt once available instead 
   542 | WARNING | Function mcrypt_get_iv_size() is deprecated since PHP 7.1; Use
   OpenSSL instead 543 | WARNING | The constant “MCRYPT_RIJNDAEL_256” is deprecated
   since PHP 7.1 544 | WARNING | The constant “MCRYPT_MODE_ECB” is deprecated since
   PHP 7.1 546 | WARNING | The constant “MCRYPT_RAND” is deprecated since PHP 7.1——————————————————————————————————————————-
 *  Plugin Author [Alain-Aymerick FRANCOIS](https://wordpress.org/support/users/aaf017/)
 * (@aaf017)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-7-support-34/#post-10002954)
 * Hi,
 * Please upgrade to last version. SwiftMailer is upgraded to 6.2.0.
 * Best regards
 *  [george504](https://wordpress.org/support/users/george504/)
 * (@george504)
 * [8 years, 3 months ago](https://wordpress.org/support/topic/php-7-support-34/#post-10007734)
 * Thanks for the update,
 * George
 *  [nightowlaz](https://wordpress.org/support/users/nightowlaz/)
 * (@nightowlaz)
 * [8 years ago](https://wordpress.org/support/topic/php-7-support-34/#post-10284394)
 * Just curious if the upgrade fixed your errors with running wp-cassify with PHP
   7.1? Getting similar errors when I run the PHP Compatibility checker. I am at
   WP-CASSIFY version 2.1.4 and getting the same errors for PHP 7.1.
 *  [nightowlaz](https://wordpress.org/support/users/nightowlaz/)
 * (@nightowlaz)
 * [8 years ago](https://wordpress.org/support/topic/php-7-support-34/#post-10305917)
 * I still get the error: Bitwise shifts by negative number will throw an ArithmeticError
   in PHP 7.0 and one of the warnings about something being “deprecated since PHP
   5.3” errors. I assume that one is okay since I am on PHP 5.6, but what about 
   the “bitwise shift” error?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘PHP 7 Support’ is closed to new replies.

 * ![](https://ps.w.org/wp-cassify/assets/icon-256x256.png?rev=3112582)
 * [WP Cassify](https://wordpress.org/plugins/wp-cassify/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-cassify/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-cassify/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-cassify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-cassify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-cassify/reviews/)

## Tags

 * [php-7](https://wordpress.org/support/topic-tag/php-7/)

 * 5 replies
 * 4 participants
 * Last reply from: [nightowlaz](https://wordpress.org/support/users/nightowlaz/)
 * Last activity: [8 years ago](https://wordpress.org/support/topic/php-7-support-34/#post-10305917)
 * Status: resolved