rest_requirements($phase)
Implements hook_requirements().
File
- core/modules/rest/rest.install, line 14
- Install, update and uninstall functions for the rest module.
Code
1 2 3 4 5 6 7 8 9 10 11 12 13 | function rest_requirements( $phase ) { $requirements = array (); if (version_compare(PHP_VERSION, '5.6.0' , '>=' ) && version_compare(PHP_VERSION, '7' , '<' ) && ini_get ( 'always_populate_raw_post_data' ) != -1) { $requirements [ 'always_populate_raw_post_data' ] = array ( 'title' => t( 'always_populate_raw_post_data PHP setting' ), 'value' => t( 'Not set to -1.' ), 'severity' => REQUIREMENT_ERROR, 'description' => t( 'The always_populate_raw_post_data PHP setting should be set to -1 in PHP version 5.6. Please check the <a href="https://php.net/manual/en/ini.core.php#ini.always-populate-raw-post-data">PHP manual</a> for information on how to correct this.' ), ); } return $requirements ; } |
Please login to continue.