Deprecated in PHP 8.0:Call to deprecated function shmop_close()

Created on 3 October 2022, over 1 year ago
Updated 3 November 2023, 8 months ago

Problem/Motivation

src/modules/contrib/smart_ip/includes/IP2Location.inc
------ -------------------------------------------------------
197 line Call to deprecated function shmop_close().
207 line Call to deprecated function shmop_close().
------ -------------------------------------------------------
Line src/modules/contrib/smart_ip/includes/geoip.inc
------ -------------------------------------------------
252 line Call to deprecated function shmop_close().
256 line Call to deprecated function shmop_close().
------ -------------------------------------------------

Proposed resolution

The shmop_close() function has been DEPRECATED as of PHP 8.0.

Note:
This function has no effect. Prior to PHP 8.0.0, this function was used to close the resource.

So I suggest to add this check:

if (PHP_MAJOR_VERSION < 8) {
    shmop_close($shm_id);
};
πŸ› Bug report
Status

Fixed

Version

2.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine Igumnov_aleksey

Live updates comments and jobs are added and updated live.
  • PHP 8.0

    The issue particularly affects sites running on PHP version 8.0.0 or later.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024