Commit 8008df23 authored by David_Rothstein's avatar David_Rothstein

Issue #2877243 by David_Rothstein, karoop, joseph.olstad, deminy: DATE_RFC7231...

Issue #2877243 by David_Rothstein, karoop, joseph.olstad, deminy: DATE_RFC7231 already defined in PHP 7.0.19 and 7.1.5
parent 79f51a14
Drupal 7.xx, xxxx-xx-xx (development version)
-----------------------
- Fixed incompatibility with PHP versions 7.0.19 and 7.1.5 due to duplicate
DATE_RFC7231 definition.
Drupal 7.54, 2017-02-01
-----------------------
......
......@@ -254,8 +254,13 @@
* http://tools.ietf.org/html/rfc7231#section-7.1.1.1
*
* Example: Sun, 06 Nov 1994 08:49:37 GMT
*
* This constant was introduced in PHP 7.0.19 and PHP 7.1.5 but needs to be
* defined by Drupal for earlier PHP versions.
*/
define('DATE_RFC7231', 'D, d M Y H:i:s \G\M\T');
if (!defined('DATE_RFC7231')) {
define('DATE_RFC7231', 'D, d M Y H:i:s \G\M\T');
}
/**
* Provides a caching wrapper to be used in place of large array structures.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment