Title: PHP 7 compatibility
Last modified: October 12, 2016

---

# PHP 7 compatibility

 *  Resolved [cpapadop](https://wordpress.org/support/users/cpapadop/)
 * (@cpapadop)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-compatibility-82/)
 * Hello,
 * I checked the PHP7 compatibility with “php compatibility checker” plugin and 
   got some warnings and errors.
 * Name: Loco Translate
 * FILE: …/wp-content/plugins/loco-translate/src/mvc/FileParams.php
    ———————————————————————————————
   FOUND 0 ERRORS AND 10 WARNINGS AFFECTING 10 LINES ———————————————————————————————
   99 | WARNING | Method name “Loco_mvc_FileParams::__name” is discouraged; PHP 
   has reserved all method names with a double underscore prefix for future use 
   107 | WARNING | Method name “Loco_mvc_FileParams::__path” is discouraged; PHP
   has reserved all method names with a double underscore prefix for future use 
   115 | WARNING | Method name “Loco_mvc_FileParams::__relpath” is discouraged; 
   PHP has reserved all method names with a double underscore prefix for future 
   use 126 | WARNING | Method name “Loco_mvc_FileParams::__reltime” is discouraged;
   PHP has reserved all method names with a double underscore prefix for future 
   use 145 | WARNING | Method name “Loco_mvc_FileParams::__bytes” is discouraged;
   PHP has reserved all method names with a double underscore prefix for future 
   use 153 | WARNING | Method name “Loco_mvc_FileParams::__size” is discouraged;
   PHP has reserved all method names with a double underscore prefix for future 
   use 162 | WARNING | Method name “Loco_mvc_FileParams::__imode” is discouraged;
   PHP has reserved all method names with a double underscore prefix for future 
   use 172 | WARNING | Method name “Loco_mvc_FileParams::__smode” is discouraged;
   PHP has reserved all method names with a double underscore prefix for future 
   use 182 | WARNING | Method name “Loco_mvc_FileParams::__owner” is discouraged;
   PHP has reserved all method names with a double underscore prefix for future 
   use 194 | WARNING | Method name “Loco_mvc_FileParams::__group” is discouraged;
   PHP has reserved all method names with a double underscore prefix for future 
   use ———————————————————————————————
 * FILE: …/wp-content/plugins/loco-translate/old/lib/loco-boot.php
    ———————————————————————————————
   FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE ———————————————————————————————
   61 | WARNING | Method name “Loco::__file” is discouraged; PHP has reserved all
   method names with a double underscore prefix for future use ———————————————————————————————
 * FILE: …/wp-content/plugins/loco-translate/lib/compiled/gettext.php
    ——————————————————————————————
   FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE —————————————————————————————— 
   1 | WARNING | File has mixed line endings; this may cause incorrect results ——————————————————————————————

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

 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-compatibility-82/#post-8282435)
 * Thanks for this.
 * I will fix the prefix issue. Easy one.
 * The last one is interesting as this file is post-processed for PHP 5.2 compatibility
   and has caused some mysterious problems for some people. Perhaps this is a clue.
 *  Thread Starter [cpapadop](https://wordpress.org/support/users/cpapadop/)
 * (@cpapadop)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-compatibility-82/#post-8282503)
 * Thank you!
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php-7-compatibility-82/#post-8283066)
 * The [development version](https://localise.biz/wordpress/plugin/developers) has
   a fix for the reserved function name prefixing, so I’m marking this ticket as
   resolved.
 * Re the line endings issue: I looked at the compatibility checker code and I think
   this is a false positive because the processed file has unescaped line breaks
   in string literals. These don’t actually count as line endings in the code, but
   I’m going to look into fixing them anyway. That compiled file is a mess and is
   causing other problems. I’ll solve it separately from this.
 * Thanks for your input.
    -  This reply was modified 9 years, 8 months ago by [Tim W](https://wordpress.org/support/users/timwhitlock/).
 *  [Drivingralle](https://wordpress.org/support/users/drivingralle/)
 * (@drivingralle)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-compatibility-82/#post-8329750)
 * Hey!
 * Thanks for your work at the plugin.
 * Looking forward to the plugin update to get the PHP7 compatibility in the stable
   version.
    Any release schedule?
 * Greetings
    derRALF
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-compatibility-82/#post-8329811)
 * Was going to be yesterday. could be later today, but more likely tomorrow.
 *  Plugin Author [Tim W](https://wordpress.org/support/users/timwhitlock/)
 * (@timwhitlock)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-compatibility-82/#post-8338653)
 * 2.0.8 is live
 *  [Drivingralle](https://wordpress.org/support/users/drivingralle/)
 * (@drivingralle)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-compatibility-82/#post-8344915)
 * Hey!
 * No more warnings with version: 2.0.9
    Thanks.
 * Greetings
    derRALF

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

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

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

## Tags

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

 * 7 replies
 * 3 participants
 * Last reply from: [Drivingralle](https://wordpress.org/support/users/drivingralle/)
 * Last activity: [9 years, 7 months ago](https://wordpress.org/support/topic/php-7-compatibility-82/#post-8344915)
 * Status: resolved