Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 20 months ago

#51560 closed enhancement (duplicate)

Create polyfills for str_contains(), str_starts_with() and str_ends_with() for PHP 8

Reported by: superpoincare's profile superpoincare Owned by:
Milestone: Priority: normal
Severity: minor Version: 5.6
Component: General Keywords: php8
Focuses: Cc:


PHP 8 will have new functions str_contains(), str_starts_with() and str_ends_with()

These are going to be popular and there are some who aren't developers but can copy/paste from websites. This creates the risk that they might copy paste some code involving these functions while not being upgraded to PHP 8 in their servers.

So it will be useful if these have polyfills in core.

Change History (2)

#1 @jorbin
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to duplicate
  • Status changed from new to closed

This request is already being tracked in #49652

#2 @desrosj
20 months ago

  • Keywords php8 added
Note: See TracTickets for help on using tickets.