• Mohd Rihan

    (@classicalrehan)


    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)
  • 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=

    Thread Starter Mohd Rihan

    (@classicalrehan)

    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.

    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.