Title: PHP 7 compability?
Last modified: March 1, 2017

---

# PHP 7 compability?

 *  [Anders Carlén](https://wordpress.org/support/users/anderscarlen/)
 * (@anderscarlen)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-7-compability-2/)
 * Hi there,
 * thanks for a great little useful plugin!
 * Any chance it could be updated to work well with PHP7 too?
 * I got this error report when running a compability check:
 *     ```
       FILE: wp-content/plugins/category-posts-in-custom-menu/cpcm-functions52.php
       ---------------------------------------------------------------------------------------------------
       FOUND 4 ERRORS AFFECTING 4 LINES
       ---------------------------------------------------------------------------------------------------
        26 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
        31 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
        38 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
        43 | ERROR | preg_replace() - /e modifier is deprecated since PHP 5.5 and removed since PHP 7.0
       ---------------------------------------------------------------------------------------------------
   
       FILE: wp-content/plugins/category-posts-in-custom-menu/category-posts-in-custom-menu.php
       ------------------------------------------------------------------------------------------------------------------------------------------------------
       FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
       ------------------------------------------------------------------------------------------------------------------------------------------------------
        533 | WARNING | Method name "CPCM_Manager::__empty" is discouraged; PHP has reserved all method names with a double underscore prefix for future use
       ------------------------------------------------------------------------------------------------------------------------------------------------------
       ```
   

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

 *  Plugin Author [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * (@anaid)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-7-compability-2/#post-8861841)
 * Hi Anders,
 * I haven’t looked into that yet. Although I haven’t made a specific plan on when
   I will do that, I’ll address it soon and will mention it in the Changelog.
 * Thanks for the heads-up.
 * Kind regards,
    Diana
 *  Thread Starter [Anders Carlén](https://wordpress.org/support/users/anderscarlen/)
 * (@anderscarlen)
 * [9 years, 2 months ago](https://wordpress.org/support/topic/php-7-compability-2/#post-8861859)
 * sweet! Thanks
 *  Plugin Author [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * (@anaid)
 * [9 years, 1 month ago](https://wordpress.org/support/topic/php-7-compability-2/#post-9035113)
 * Hi Anders,
 * I just revisited this today (yes, late, I know, sorry) and see now (heheh, woops)
   that the errors occur in file cpcm-functions52.php
 * This file is *only* used for PHP 5.2 and lower. Otherwise, it is not ignored.
 * What remains is a warning, I’ll fix usage of double underscores to get rid of
   that warning.
 * Either way, you’re good to go for PHP 7.0!
 * Kind regards,
    Diana
    -  This reply was modified 9 years, 1 month ago by [Diana van de Laarschot](https://wordpress.org/support/users/anaid/).

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

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

 * ![](https://ps.w.org/category-posts-in-custom-menu/assets/icon-128x128.png?rev
   =2539336)
 * [Category Posts in Custom Menu](https://wordpress.org/plugins/category-posts-in-custom-menu/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/category-posts-in-custom-menu/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/category-posts-in-custom-menu/)
 * [Active Topics](https://wordpress.org/support/plugin/category-posts-in-custom-menu/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/category-posts-in-custom-menu/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/category-posts-in-custom-menu/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Diana van de Laarschot](https://wordpress.org/support/users/anaid/)
 * Last activity: [9 years, 1 month ago](https://wordpress.org/support/topic/php-7-compability-2/#post-9035113)
 * Status: not resolved