Skip to content

Bug: FILTER_SANITIZE_STRING is deprecated (PHP 8.1.0 early test) #4938

Description

@sys4soft

Hi there.

I'm currently testing a PHP 8.1.0 master branch Windows compilation, which will certainly be very close to the final version of PHP 8.1.0, and CodeIgniter 4.1.3.

In the development environment, this error is coming up:

SYSTEMPATH\Router\RouteCollection.php at line 1368
line: 1368 $from = filter_var($prefix . $from, FILTER_SANITIZE_STRING);
ErrorException: Constant FILTER_SANITIZE_STRING is deprecated

It seems to me that this would be a good time to prepare for the future by fixing this "future" bug that is coming.

I will not post any "future bugs" here again unless you expressly direct me to do so, as it may not be a priority at this time to focus on the solution.

Let me know if you want me to identify potential "future bugs" as I test with unreleased versions of PHP.

Specs:
Using Laragon (Apache 2.4.35 + PHP 8.1.0 master branch compilation)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugVerified issues on the current code behavior or pull requests that will fix them

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions