Problem/Motivation

After upgrade to php 8.1, strlen() function is deprecated.

Steps to reproduce

Upgrade php version to php8.1

Proposed resolution

Change strlen() to empty()

Remaining tasks

No

User interface changes

No

API changes

No

Data model changes

No

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

cobenash created an issue. See original summary.

dripa’s picture

Status: Active » Reviewed & tested by the community

Thanks, changes in MR fixed the PHP8.1 issues

kjwhite’s picture

Patch file attached for use in composer.json files pending this issue's merge.

jonnyhocks’s picture

StatusFileSize
new5.28 KB

I've re-rolled the changes in the recent patch for this issue to be applied against the fork in the D10 updates issue

darvanen’s picture

+1 RTBC, these work well to quiet the errors in php 8.1 and Drupal 10 and do so in an elegant fashion.

nicrodgers’s picture

Status: Reviewed & tested by the community » Needs review
StatusFileSize
new4.86 KB

I've re-rolled the patch in #5 to work with the latest MR here https://www.drupal.org/project/restrict_by_ip/issues/3289374

darvanen’s picture

Status: Needs review » Reviewed & tested by the community

We can consider #5 to be RTBC as it applies to the dev branch and treat #7 as a utility.

chegor’s picture

+1 RTBC

rocketeerbkw’s picture

Status: Reviewed & tested by the community » Fixed

Thanks all!

  • rocketeerbkw committed 9df64855 on 8.x-4.x
    Issue #3292104 by cobenash, darvanen, DrIPA: Remove use of deprecated...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.