mirror of
https://github.com/tag1consulting/d7_to_d10_migration.git
synced 2025-11-21 06:26:30 +00:00
Update Drupal 7 to 7.105
@see https://gitlab.com/tag1consulting/public/drupal/-/releases/7.105
This commit is contained in:
parent
c76979e3d5
commit
fb9ad88a0f
160 changed files with 276 additions and 782 deletions
|
|
@ -8,7 +8,7 @@
|
|||
/**
|
||||
* The current system version.
|
||||
*/
|
||||
define('VERSION', '7.103');
|
||||
define('VERSION', '7.105');
|
||||
|
||||
/**
|
||||
* Core API compatibility.
|
||||
|
|
|
|||
|
|
@ -26,7 +26,6 @@ function drupal_error_levels() {
|
|||
E_USER_ERROR => array('User error', WATCHDOG_ERROR),
|
||||
E_USER_WARNING => array('User warning', WATCHDOG_WARNING),
|
||||
E_USER_NOTICE => array('User notice', WATCHDOG_NOTICE),
|
||||
E_STRICT => array('Strict warning', WATCHDOG_DEBUG),
|
||||
E_RECOVERABLE_ERROR => array('Recoverable fatal error', WATCHDOG_ERROR),
|
||||
);
|
||||
// E_DEPRECATED and E_USER_DEPRECATED were added in PHP 5.3.0.
|
||||
|
|
@ -34,6 +33,10 @@ function drupal_error_levels() {
|
|||
$types[E_DEPRECATED] = array('Deprecated function', WATCHDOG_DEBUG);
|
||||
$types[E_USER_DEPRECATED] = array('User deprecated function', WATCHDOG_DEBUG);
|
||||
}
|
||||
// E_STRICT is deprecated in PHP 8.4.
|
||||
if (PHP_VERSION_ID < 80400) {
|
||||
$types[E_STRICT] = array('Strict warning', WATCHDOG_DEBUG);
|
||||
}
|
||||
return $types;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -242,7 +242,7 @@ function _drupal_session_write($sid, $value) {
|
|||
function drupal_session_initialize() {
|
||||
global $user, $is_https;
|
||||
|
||||
session_set_save_handler('_drupal_session_open', '_drupal_session_close', '_drupal_session_read', '_drupal_session_write', '_drupal_session_destroy', '_drupal_session_garbage_collection');
|
||||
session_set_save_handler(new DrupalSessionHandler());
|
||||
|
||||
// We use !empty() in the following check to ensure that blank session IDs
|
||||
// are not valid.
|
||||
|
|
@ -620,3 +620,40 @@ function drupal_session_id($id) {
|
|||
}
|
||||
return $id;
|
||||
}
|
||||
|
||||
/**
|
||||
* Session handler implementation.
|
||||
*/
|
||||
class DrupalSessionHandler implements SessionHandlerInterface {
|
||||
|
||||
#[ReturnTypeWillChange]
|
||||
public function open($path, $name) {
|
||||
return _drupal_session_open($path, $name);
|
||||
}
|
||||
|
||||
#[ReturnTypeWillChange]
|
||||
public function close() {
|
||||
return _drupal_session_close();
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
public function read($id) {
|
||||
return _drupal_session_read($id);
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
public function write($id, $data) {
|
||||
return _drupal_session_write($id, $data);
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
public function destroy($id) {
|
||||
return _drupal_session_destroy($id);
|
||||
}
|
||||
|
||||
#[\ReturnTypeWillChange]
|
||||
public function gc($max_lifetime) {
|
||||
return _drupal_session_garbage_collection($max_lifetime);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue