Title: PHP7 compatibility
Last modified: September 1, 2016

---

# PHP7 compatibility

 *  Resolved [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [9 years, 9 months ago](https://wordpress.org/support/topic/php7-compatibility-36/)
 * That’s what we got after checking our site with `php7cc` before upgrading PHP5
   to PHP7 on a server.
 *     ```
       File: .../plugins/oauth2-provider/library/OAuth2/Storage/Wordpressdb.php
       > Line 214: Function argument(s) returned by "func_get_args" might have been modified
           func_get_args();
   
       File: .../plugins/oauth2-provider/library/OAuth2/Storage/Pdo.php
       > Line 184: Function argument(s) returned by "func_get_args" might have been modified
           func_get_args();
   
       File: .../plugins/oauth2-provider/library/class-wo-table.php
       > Line 85: Removed function "mysql_real_escape_string" called
           mysql_real_escape_string($_GET['orderby']);
       > Line 86: Removed function "mysql_real_escape_string" called
           mysql_real_escape_string($_GET['order']);
       > Line 94: Removed function "mysql_real_escape_string" called
           mysql_real_escape_string($_GET['paged']);
       ```
   
 * Do you have plans to fix that and when will it be done?
 * [https://wordpress.org/plugins/oauth2-provider/](https://wordpress.org/plugins/oauth2-provider/)

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

 *  Plugin Author [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php7-compatibility-36/#post-8263132)
 * The next version will contain mysql_real_escape_string updates. Sorry for the
   late reply.
 *  Thread Starter [Slava Abakumov](https://wordpress.org/support/users/slaffik/)
 * (@slaffik)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php7-compatibility-36/#post-8263680)
 * Glad to hear that.
    Is there any ETA when it will be released?
 *  Plugin Author [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [9 years, 8 months ago](https://wordpress.org/support/topic/php7-compatibility-36/#post-8263701)
 * The trunk is updated already but I am thinking in the next week or two for the
   official update.
 *  [Mohd Rihan](https://wordpress.org/support/users/classicalrehan/)
 * (@classicalrehan)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php7-compatibility-36/#post-9251728)
 * The issue is still exist, I have upgraded my wp version with 4.8 and check the
   compatibility with PHP7 and found this issue in lots of files. some of them are
   below mention.
 * can you please check.
 * 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();
 * File: /apps/CareerSite/careersite/wp-includes/plugin.php
    > Line 184: Function
   argument(s) returned by “func_get_args” might have been modified func_get_args();
   > Line 198: Function argument(s) returned by “func_get_args” might have been 
   modified func_get_args(); > Line 231: Function argument(s) returned by “func_get_args”
   might have been modified func_get_args(); > Line 432: Function argument(s) returned
   by “func_get_args” might have been modified func_get_args(); > Line 451: Function
   argument(s) returned by “func_get_arg” might have been modified func_get_arg(
   $a); > Line 502: Function argument(s) returned by “func_get_args” might have 
   been modified func_get_args(); File: /apps/CareerSite/careersite/wp-includes/
   widgets.php > Line 358: Function argument(s) returned by “func_get_args” might
   have been modified func_get_args(); > Line 499: Function argument(s) returned
   by “func_get_args” might have been modified func_get_args(); > Line 538: Function
   argument(s) returned by “func_get_args” might have been modified func_get_args();
   > Line 580: Function argument(s) returned by “func_get_args” might have been 
   modified func_get_args();
 * File: /apps/CareerSite/careersite/wp-includes/deprecated.php
    > Line 1789: Function
   argument(s) returned by “func_get_args” might have been modified func_get_args();
   > Line 1802: Function argument(s) returned by “func_get_args” might have been
   modified func_get_args(); > Line 2065: Function argument(s) returned by “func_get_args”
   might have been modified func_get_args(); > Line 2120: Function argument(s) returned
   by “func_get_args” might have been modified func_get_args(); > Line 2177: Function
   argument(s) returned by “func_get_args” might have been modified func_get_args();
 * File: /apps/CareerSite/careersite/wp-includes/capabilities.php
    > Line 544: Function
   argument(s) returned by “func_get_args” might have been modified func_get_args();
   > Line 571: Function argument(s) returned by “func_get_args” might have been 
   modified func_get_args(); > Line 601: Function argument(s) returned by “func_get_args”
   might have been modified func_get_args(); > Line 623: Function argument(s) returned
   by “func_get_args” might have been modified func_get_args();
 * File: /apps/CareerSite/careersite/wp-includes/rest-api/class-wp-rest-server.php
   
   > Line 737: Nested by-reference foreach loop, make sure there is no iteration
   over the same array foreach ($handlers as $key => &$handler) { } > Line 1304:
   Removed “HTTP_RAW_POST_DATA” variable used $HTTP_RAW_POST_DATA; > Line 1310: 
   Removed “HTTP_RAW_POST_DATA” variable used $HTTP_RAW_POST_DATA; > Line 1311: 
   Removed “HTTP_RAW_POST_DATA” variable used $HTTP_RAW_POST_DATA; > Line 1314: 
   Removed “HTTP_RAW_POST_DATA” variable used $HTTP_RAW_POST_DATA;
 * File: /apps/CareerSite/careersite/xmlrpc.php
    > Line 21: Removed “HTTP_RAW_POST_DATA”
   variable used $HTTP_RAW_POST_DATA; > Line 22: Removed “HTTP_RAW_POST_DATA” variable
   used $HTTP_RAW_POST_DATA; > Line 26: Removed “HTTP_RAW_POST_DATA” variable used
   $HTTP_RAW_POST_DATA; > Line 27: Removed “HTTP_RAW_POST_DATA” variable used $HTTP_RAW_POST_DATA;
   > Line 27: Removed “HTTP_RAW_POST_DATA” variable used $HTTP_RAW_POST_DATA;
 *  Plugin Author [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * (@justingreerbbi)
 * [8 years, 11 months ago](https://wordpress.org/support/topic/php7-compatibility-36/#post-9251982)
 * Hi and thanks for sharing. I am 100% sure that our plugin is PHP7 compatible.
   Judging by the files that you shared, I am thinking that your server is not setup
   properly or has some extremely high level reporting.
 * Are you by any chance using a Windows OS for your server. Either way, check with
   your hosting provider. WP 4.8 is PHP7 compatible so for all these errors in the
   core, there is something wrong with the hosting environment.

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

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

 * ![](https://ps.w.org/oauth2-provider/assets/icon-256x256.gif?rev=2603051)
 * [WP OAuth Server (OAuth Authentication)](https://wordpress.org/plugins/oauth2-provider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/oauth2-provider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/oauth2-provider/)
 * [Active Topics](https://wordpress.org/support/plugin/oauth2-provider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/oauth2-provider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/oauth2-provider/reviews/)

## Tags

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

 * 5 replies
 * 3 participants
 * Last reply from: [Justin Greer](https://wordpress.org/support/users/justingreerbbi/)
 * Last activity: [8 years, 11 months ago](https://wordpress.org/support/topic/php7-compatibility-36/#post-9251982)
 * Status: resolved