[wp-trac] [WordPress Trac] #52654: Check and recommend intl extension in Site Health

WordPress Trac noreply at wordpress.org
Fri May 7 03:10:22 UTC 2021


#52654: Check and recommend intl extension in Site Health
-------------------------+------------------------------
 Reporter:  zodiac1978   |       Owner:  (none)
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Site Health  |     Version:
 Severity:  normal       |  Resolution:
 Keywords:  2nd-opinion  |     Focuses:
-------------------------+------------------------------

Comment (by jrf):

 > A quick look at the PHP documentation shows it's available in PHP 5.3
 and PHP 7, but not PHP 8, but then rather as an optional install via the
 intl PECL package.

 @Clorith You may have looked before the manual was updated, but yes, the
 Intl extension is available in PHP 8 and it also states as much in the
 manual (at the time of writing):

 > (PHP 5 >= 5.3.0, PHP 7, **PHP 8**, PECL intl >= 1.0.0)

 More relevant is that PHP
 [https://www.php.net/manual/en/intl.installation.php needs to be build
 with `--enable-intl`] for it to be available, so a functionality check
 (`function_exists`/`class_exists`/`defined` etc) is always needed before
 any of the Intl functionality can be used..

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52654#comment:13>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list