Title: Migrating to php7
Last modified: February 25, 2017

---

# Migrating to php7

 *  [davidleefish](https://wordpress.org/support/users/davidleefish/)
 * (@davidleefish)
 * [9 years, 3 months ago](https://wordpress.org/support/topic/migrating-to-php7/)
 * I’m trying to migrate to php7. I get the following error about with the compatibility
   checker I’m using. Thought you should know.
 * FILE: /nas/content/live/gb2017/wp-content/plugins/badgeos/includes/p2p/mustache/
   Mustache.php
    ————————————————————————————————————————- FOUND 1 ERROR AFFECTING
   1 LINE ————————————————————————————————————————- 701 | ERROR | ‘clone’ is a reserved
   keyword introduced in PHP version 5.0 and cannot be invoked as a function (T_CLONE)————————————————————————————————————————-
 * FILE: /nas/content/live/gb2017/wp-content/plugins/badgeos/includes/cmb/init.php
   —————————————————————————————————————————————-
   FOUND 1 ERROR AFFECTING 1 LINE —————————————————————————————————————————————-
   208 | ERROR | Function name, class name, namespace name or constant name can 
   not be reserved keyword ‘__dir__’ (since PHP version 5.3) —————————————————————————————————————————————-

The topic ‘Migrating to php7’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/badgeos_85d3bc.svg)
 * [BadgeOS](https://wordpress.org/plugins/badgeos/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/badgeos/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/badgeos/)
 * [Active Topics](https://wordpress.org/support/plugin/badgeos/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/badgeos/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/badgeos/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [davidleefish](https://wordpress.org/support/users/davidleefish/)
 * Last activity: [9 years, 3 months ago](https://wordpress.org/support/topic/migrating-to-php7/)
 * Status: not resolved