PHP 5.3 cannot find normalizer_normalize ()

I am trying to use the normalizer_normalize () function introduced in PHP 5.3 (says the document), however I cannot use it:

$ php -r 'echo normalizer_normalize("tΓ©st");' PHP Fatal error: Call to undefined function normalizer_normalize() in Command line code on line 1 

I checked my version of PHP, but it is 5.3:

 $ php --version PHP 5.3.6 (cli) (built: Sep 12 2011 18:02:42) 

I do not understand why PHP cannot find it?

+6
source share
1 answer

The normalizer is part of the extension. Although built by default , this does not necessarily mean that the specific version of PHP you are using is installed or enabled by default.

If you get the PHP version from your operating system, check to see if the package manager has a package named php-intl . If not, check php-pecl-intl . If you are using RHEL / CentOS / Scientific Linux 5.x, also see php53-intl .

+6
source

Source: https://habr.com/ru/post/906516/


All Articles