Title: Checking for PHP 7.2 compatibility
Last modified: March 28, 2019

---

# Checking for PHP 7.2 compatibility

 *  [victorkun](https://wordpress.org/support/users/victorkun/)
 * (@victorkun)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/checking-for-php-7-2-compatibility/)
 * Using php-compatibility-checker with PHP 7.2.
 * Is it compatible?
 * Yes there are “WARNINGS”, but it did spit out “ERRORS”…
 * #############################################################
    #############################################################
   FILE: ~/wp-content/plugins/better-wp-security/core/class-itsec-core.php ————————————————————————————————————————————
   FOUND 4 ERRORS AFFECTING 3 LINES ————————————————————————————————————————————
   469 | ERROR | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6
   and removed since PHP 7.0; Use php://input instead 471 | ERROR | Global variable‘
   $HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6 and removed since PHP 7.0; Use
   php://input instead 471 | ERROR | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated
   since PHP 5.6 and removed since PHP 7.0; Use php://input instead 473 | ERROR 
   | Global variable ‘$HTTP_RAW_POST_DATA’ is deprecated since PHP 5.6 and removed
   since PHP 7.0; Use php://input instead ————————————————————————————————————————————##########################################################################################################################
 * Below is the relevant code :
 * #############################################################
    #############################################################
   462 //Admin bar links 463 if ( ! isset( $itsec_globals[‘settings’][‘hide_admin_bar’])
   || $itsec_globals[‘settings’][‘hide_admin_bar’] === false ) { 464 add_action(‘
   admin_bar_menu’, array( $this, ‘admin_bar_links’ ), 99 ); 465 } 466 467 if ( 
   isset( $itsec_globals[‘settings’][‘infinitewp_compatibility’] ) && $itsec_globals[‘
   settings’][‘infinitewp_compatibility’] === true ) { 468 469 $HTTP_RAW_POST_DATA
   = @file_get_contents( ‘php://input’ ); 470 471 if ( $HTTP_RAW_POST_DATA !== false&&
   strlen( $HTTP_RAW_POST_DATA ) > 0 ) { 472 473 $data = base64_decode( $HTTP_RAW_POST_DATA);
   474 475 if ( strpos( $data, ‘s:10:”iwp_action”;’ ) !== false ) { 476 $itsec_globals[‘
   is_iwp_call’] = true; 477 } 478 479 } 480 481 }

Viewing 1 replies (of 1 total)

 *  [nlpro](https://wordpress.org/support/users/nlpro/)
 * (@nlpro)
 * [7 years, 2 months ago](https://wordpress.org/support/topic/checking-for-php-7-2-compatibility/#post-11369466)
 * According to the 5.6.1 Changelog:
 * > Compatibility Fix: Changed name of the $HTTP_RAW_POST_DATA variable to avoid
   > erroneously tripping PHP 7 compatibility checks.
 * Perhaps you should update the plugin 😉

Viewing 1 replies (of 1 total)

The topic ‘Checking for PHP 7.2 compatibility’ is closed to new replies.

 * ![](https://ps.w.org/better-wp-security/assets/icon.svg?rev=3529351)
 * [Kadence Security – Password, Two Factor Authentication, and Brute Force Protection](https://wordpress.org/plugins/better-wp-security/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/better-wp-security/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/better-wp-security/)
 * [Active Topics](https://wordpress.org/support/plugin/better-wp-security/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/better-wp-security/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/better-wp-security/reviews/)

## Tags

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

 * 1 reply
 * 2 participants
 * Last reply from: [nlpro](https://wordpress.org/support/users/nlpro/)
 * Last activity: [7 years, 2 months ago](https://wordpress.org/support/topic/checking-for-php-7-2-compatibility/#post-11369466)
 * Status: not resolved