• I’m trying to update my PHP version to 5.6. However, using a plugin to check if that is possible, it says something like this:

    FILE: wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/client/client.php
    —————————————————————————————————————————————————–
    FOUND 5 ERRORS AFFECTING 4 LINES
    —————————————————————————————————————————————————–
    11 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    13 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    16 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    16 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    18 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    —————————————————————————————————————————————————–

    FILE: wp-content/plugins/contact-form-7-infusionsoft-add-on/src/xmlrpc-3.0/demo/client/mail.php
    —————————————————————————————————————————————————
    FOUND 13 ERRORS AFFECTING 11 LINES
    —————————————————————————————————————————————————
    3 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_GET_VARS’
    3 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_GET_VARS’
    20 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    21 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    23 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    23 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    24 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    30 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    31 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    32 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    33 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    34 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    35 | ERROR | The use of long predefined variables has been deprecated in PHP 5.3 and removed in PHP 5.4; Found ‘$HTTP_POST_VARS’
    —————————————————————————————————————————————————

    As I know, that vars are removed in PHP v5.4 and we should be using $_POST.

    I can make the change but if you push a version up then all my changes will be lost. Could you please upload the code to github so I (and possibly others) can make pull requests to this plugin?

    Thank you!!

Viewing 1 replies (of 1 total)
  • Thread Starter Carlos Faria

    (@frendeliko)

    Seems like that code is part of the xmlrpc package and is demo code for development purposes, so removing that code should do it…

Viewing 1 replies (of 1 total)
  • The topic ‘$_POST instead of $HTTP_POST_VARS’ is closed to new replies.