Title: PHP7 compatibility
Last modified: June 22, 2017

---

# PHP7 compatibility

 *  [Mohd Rihan](https://wordpress.org/support/users/classicalrehan/)
 * (@classicalrehan)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php7-compatibility-81/)
 * I have upgrade my WP version with 4.8 and found the compatibility issue with 
   php7. That’s what we got after checking our site with php7cc before upgrading
   PHP5 to PHP7 on a server.
 * Do you have plans to fix that and when will it be done?
 * File: /apps/CareerSite/careersite/wp-admin/includes/class-pclzip.php
    > Line 
   292: Function argument(s) returned by “func_get_args” might have been modified
 *  func_get_args();
    > Line 475: Function argument(s) returned by “func_get_args”
   might have been modified func_get_args(); > Line 732: Function argument(s) returned
   by “func_get_args” might have been modified func_get_args(); > Line 889: Function
   argument(s) returned by “func_get_args” might have been modified func_get_args();
   > Line 1031: Function argument(s) returned by “func_get_args” might have been
   modified func_get_args(); > Line 5345: Removed function “set_magic_quotes_runtime”
   called set_magic_quotes_runtime(0); > Line 5376: Removed function “set_magic_quotes_runtime”
   called set_magic_quotes_runtime($this->magic_quotes_status);
 * File: /apps/CareerSite/careersite/wp-admin/includes/class-wp-ajax-upgrader-skin.
   php
    > Line 94: Function argument(s) returned by “func_get_args” might have been
   modified func_get_args(); > Line 110: Function argument(s) returned by “func_get_args”
   might have been modified func_get_args(); > Line 129: Function argument(s) returned
   by “func_get_args” might have been modified func_get_args();
 * File: /apps/CareerSite/careersite/wp-admin/includes/dashboard.php
    > Line 996:
   Function argument(s) returned by “func_get_args” might have been modified func_get_args();
 * File: /apps/CareerSite/careersite/wp-admin/includes/class-wp-upgrader-skin.php
   
   > Line 149: Function argument(s) returned by “func_get_args” might have been 
   modified func_get_args();
 * File: /apps/CareerSite/careersite/wp-admin/includes/class-bulk-upgrader-skin.
   php
    > Line 58: Function argument(s) returned by “func_get_args” might have been
   modified func_get_args();
 * File: /apps/CareerSite/careersite/wp-admin/includes/media.php
    > Line 534: Function
   argument(s) returned by “func_get_args” might have been modified func_get_args();
 * File: /apps/CareerSite/careersite/wp-admin/includes/class-automatic-upgrader-
   skin.php
    > Line 76: Function argument(s) returned by “func_get_args” might have
   been modified func_get_args();

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

 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php7-compatibility-81/#post-9251926)
 * WordPress not only supports PHP 7, it’s recommended that you use 7.0 or higher.
 * I’m not familiar with PHP7cc, but I believe the warnings about `func_get_args()`
   is just something that _might_ cause issues, and that the programmers should 
   check, but won’t necessarily cause problems if they’ve been accounted for.
 * The other issue, regarding `set_magic_quotes_runtime()`, doesn’t seem to account
   for WordPres checking the PHP version before running it: [https://github.com/WordPress/WordPress/search?utf8=✓&q=set_magic_quotes_runtime&type=](https://github.com/WordPress/WordPress/search?utf8=✓&q=set_magic_quotes_runtime&type=)
 *  Thread Starter [Mohd Rihan](https://wordpress.org/support/users/classicalrehan/)
 * (@classicalrehan)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php7-compatibility-81/#post-9253284)
 * is this in wp4.8 resolves such warning?
 * I thing this should be resolved in 4.8 if you are making wp compatible with PHP7,
   as you are mention in wp requirement is PHP7 or higher.
 * set_magic_quotes_runtime() I want your attention here, because if you using this
   function in our wp setup and PHP7 is already mention that we have removed this,
   then why are you calling this fun’c and from where we will get definition of 
   this fun’c.
 *  [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * (@jakept)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php7-compatibility-81/#post-9257871)
 * No, WordPress’ _requirement_ isn’t PHP7, just the recommendation. WordPress still
   supports older versions of PHP, which is why this function is still in core.
 * As I said though, the important thing is that WordPress checks which version 
   of PHP is running, and _will not run this function_ if it’s not there because
   you’re running PHP7.

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

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

## Tags

 * [php7 compatibility](https://wordpress.org/support/topic-tag/php7-compatibility/)
 * [WP4.8](https://wordpress.org/support/topic-tag/wp4-8/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 2 participants
 * Last reply from: [Jacob Peattie](https://wordpress.org/support/users/jakept/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/php7-compatibility-81/#post-9257871)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
