Title: PHP7 compatibility
Last modified: January 13, 2017

---

# PHP7 compatibility

 *  [Erik Molenaar](https://wordpress.org/support/users/erikmolenaar/)
 * (@erikmolenaar)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php7-compatibility-69/)
 * Hi,
 * Is your plugin compatible with PHP7?
 * When using WP Engine’s plugin for scanning plugins for PHP7 compatibility, I 
   am getting these warnings:
 *     ```
       Name: MailPoet Newsletters
   
       FILE: /nas/content/staging/xxxxxxxx/wp-content/plugins/wysija-newsletters/helpers/bounce.php
       ---------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       ---------------------------------------------------------------------------------------------
        63 | WARNING | Function dl() is deprecated since PHP 5.3
       ---------------------------------------------------------------------------------------------
   
       FILE: /nas/content/staging/xxxxxxxx/wp-content/plugins/wysija-newsletters/inc/pear/pear.php
       --------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 5 WARNINGS AFFECTING 4 LINES
       --------------------------------------------------------------------------------------------------
        171 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
        740 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
        754 | WARNING | Function dl() is deprecated since PHP 5.3
        754 | WARNING | Function dl() is deprecated since PHP 5.3
        852 | WARNING | Use of deprecated PHP4 style class constructor is not supported since PHP 7.
       --------------------------------------------------------------------------------------------------
   
       FILE: /nas/content/staging/xxxxxxxx/wp-content/plugins/wysija-newsletters/inc/phpmailer/class.phpmailer.php
       --------------------------------------------------------------------------------------------------------------------------------
       FOUND 7 ERRORS AND 1 WARNING AFFECTING 8 LINES
       --------------------------------------------------------------------------------------------------------------------------------
         527 | WARNING | INI directive 'safe_mode' is deprecated since PHP 5.3 and removed since PHP 5.4.
        1358 | ERROR   | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
        1362 | ERROR   | INI directive 'magic_quotes_runtime' is deprecated since PHP 5.3 and removed since PHP 5.4.
        1785 | ERROR   | The use of long predefined variables has been deprecated in 5.3 and removed in 5.4; Found '$HTTP_SERVER_VARS'
        1786 | ERROR   | The use of long predefined variables has been deprecated in 5.3 and removed in 5.4; Found '$HTTP_ENV_VARS'
        1789 | ERROR   | The use of long predefined variables has been deprecated in 5.3 and removed in 5.4; Found '$HTTP_SERVER_VARS'
        1791 | ERROR   | The use of long predefined variables has been deprecated in 5.3 and removed in 5.4; Found '$HTTP_ENV_VARS'
        1879 | ERROR   | Function split() is deprecated since PHP 5.3 and removed since PHP 7.0; use preg_split instead
       --------------------------------------------------------------------------------------------------------------------------------
   
       FILE: /nas/content/staging/xxxxxxxx/wp-content/plugins/wysija-newsletters/controllers/back.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
        207 | WARNING | Method name "WYSIJA_control_back::__setMetaTitle" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------
   
       FILE: /nas/content/staging/xxxxxxxx/wp-content/plugins/wysija-newsletters/views/back/campaigns.php
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
        2359 | WARNING | Method name "WYSIJA_view_back_campaigns::__filterPostParent" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
       --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
       ```
   

Viewing 1 replies (of 1 total)

 *  [Wysija](https://wordpress.org/support/users/wysija/)
 * (@wysija)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/php7-compatibility-69/#post-8670691)
 * Yes, it is. Don’t worry about these tools, they are famous for reporting lots
   of false-positives.

Viewing 1 replies (of 1 total)

The topic ‘PHP7 compatibility’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wysija-newsletters_ffddcc.svg)
 * [MailPoet Newsletters (Previous)](https://wordpress.org/plugins/wysija-newsletters/)
 * [Support Threads](https://wordpress.org/support/plugin/wysija-newsletters/)
 * [Active Topics](https://wordpress.org/support/plugin/wysija-newsletters/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wysija-newsletters/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wysija-newsletters/reviews/)

## Tags

 * [PHP7](https://wordpress.org/support/topic-tag/php7/)

 * 1 reply
 * 2 participants
 * Last reply from: [Wysija](https://wordpress.org/support/users/wysija/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/php7-compatibility-69/#post-8670691)
 * Status: not resolved