[wp-trac] [WordPress Trac] #50784: Stop using `preg_match()` in `wp_opcache_invalidate()`
WordPress Trac
noreply at wordpress.org
Mon Jul 27 12:24:27 UTC 2020
#50784: Stop using `preg_match()` in `wp_opcache_invalidate()`
-----------------------------+-----------------------
Reporter: mikeschroder | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: 5.5
Component: Upgrade/Install | Version: trunk
Severity: normal | Keywords: has-patch
Focuses: |
-----------------------------+-----------------------
While writing up the devnote for `wp_opcache_invalidate()`, @aaroncampbell
pointed out, rightly, that it might make sense to use something else to
check for a PHP extension rather `preg_match()` for performance reasons.
As timeout failures are common during upgrades and we're only checking for
one extension for PHP files at this point, I agree.
Patches coming shortly.
See: #36455
--
Ticket URL: <https://core.trac.wordpress.org/ticket/50784>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list