diff -u b/.htaccess b/.htaccess --- b/.htaccess +++ b/.htaccess @@ -35,13 +35,13 @@ # PHP 5, Apache 1 and 2. - php_flag session.auto_start off - php_value mbstring.http_input pass - php_value mbstring.http_output pass - php_flag mbstring.encoding_translation off + php_flag session.auto_start off + php_value mbstring.http_input pass + php_value mbstring.http_output pass + php_flag mbstring.encoding_translation off # PHP 5.6 has deprecated $HTTP_RAW_POST_DATA and produces warnings if this is # not set. - php_value always_populate_raw_post_data -1 + php_value always_populate_raw_post_data -1 # Requires mod_expires to be enabled. diff -u b/core/modules/rest/src/Tests/CreateTest.php b/core/modules/rest/src/Tests/CreateTest.php --- b/core/modules/rest/src/Tests/CreateTest.php +++ b/core/modules/rest/src/Tests/CreateTest.php @@ -302,14 +302,14 @@ * The body for the POST request. */ public function assertCreateEntityOverRestApi($entity_type, $serialized = NULL) { - // Note: this will fail with PHP 5.6 and always_populate_raw_post_data - // set to something other than -1. See https://www.drupal.org/node/2456025. $this->httpRequest('entity/' . $entity_type, 'POST', $serialized, $this->defaultMimeType); $this->assertResponse(201); } * The body for the POST request. */ public function assertCreateEntityOverRestApi($entity_type, $serialized = NULL) { + // Note: this will fail with PHP 5.6 when always_populate_raw_post_data is + // set to something other than -1. See https://www.drupal.org/node/2456025. $this->httpRequest('entity/' . $entity_type, 'POST', $serialized, $this->defaultMimeType); $this->assertResponse(201); }