Problem/Motivation

For Drupal 9 Compatibility, the fnmatch function should be removed, as stated by the Upgrade Status Message.

STATUS         LINE                           MESSAGE
--------------------------------------------------------------------------------
Check manually 93   Calls to function fnmatch should not exist.
--------------------------------------------------------------------------------
Check manually 122  Calls to function fnmatch should not exist.
--------------------------------------------------------------------------------

Proposed resolution

Proposing to change the fnmatch to a preg_match, that will follow a comparison string that mimics the functionality of fnmatch.

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

ZeiferDev created an issue. See original summary.

cozydrupalnerd’s picture

StatusFileSize
new1.27 KB

Here is the proposed patch.

bircher’s picture

Status: Active » Needs review
StatusFileSize
new1.78 KB

how abut we just copy paste the method that does the same on 3.x

  • bircher committed 88559f6 on 8.x-2.x
    Issue #3182849 by ZeiferDev, bircher: Drupal 9 fnmatch function fix
    
bircher’s picture

Status: Needs review » Fixed

Thanks for opening the issue and the patch!

Status: Fixed » Closed (fixed)

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

hmdnawaz made their first commit to this issue’s fork.