Mercurial > hg > isophonics-drupal-site
comparison core/modules/rest/rest.install @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | 4c8ae668cc8c |
children |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
12 * Implements hook_requirements(). | 12 * Implements hook_requirements(). |
13 */ | 13 */ |
14 function rest_requirements($phase) { | 14 function rest_requirements($phase) { |
15 $requirements = []; | 15 $requirements = []; |
16 | 16 |
17 if (version_compare(PHP_VERSION, '5.6.0', '>=') && version_compare(PHP_VERSION, '7', '<') && ini_get('always_populate_raw_post_data') != -1) { | 17 if ($phase == 'runtime' && PHP_SAPI !== 'cli' && version_compare(PHP_VERSION, '5.6.0', '>=') && version_compare(PHP_VERSION, '7', '<') && ini_get('always_populate_raw_post_data') != -1) { |
18 $requirements['always_populate_raw_post_data'] = [ | 18 $requirements['always_populate_raw_post_data'] = [ |
19 'title' => t('always_populate_raw_post_data PHP setting'), | 19 'title' => t('always_populate_raw_post_data PHP setting'), |
20 'value' => t('Not set to -1.'), | 20 'value' => t('Not set to -1.'), |
21 'severity' => REQUIREMENT_ERROR, | 21 'severity' => REQUIREMENT_ERROR, |
22 '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.'), | 22 '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.'), |