intl

install php intl extension on mountain lion

对着背影说爱祢 提交于 2019-12-04 14:09:10
I'm trying to install rubedo cms, and get an error in the php application: Zend\I18n\Validator component requires the intl PHP extension These are the steps I've taken to install the extension sudo port install php5-intl sudo cp /opt/local/lib/php54/extensions/no-debug-non-zts-20100525/intl.so /usr/lib/php/extensions/no-debug-non-zts-20090626/ sudo pico /private/etc/php.ini add extension=intl.so then sudo apachectl restart I found the problem. I needed the right version of intl. I'm running php 5.3, which I think is the reason that when I ran: sudo port install php53-intl it worked.

intl and icu configuration

蹲街弑〆低调 提交于 2019-12-04 05:19:50
问题 I've been working on a local development machine running Ubuntu 12 developing a Symfony2.3.5 application. All works well, until I uploaded the code and came across this: Could not load the resource bundle "/home/project/public_html/vendor/symfony/icu/Symfony/Component/Icu/Resources/data/region/en.res". The server is currently running the following: CENTOS 5.9 x86_64 standard WHM 11.38.2 (build 7) In WHM I've installed intl via the EasyApache installer, yet I'm still getting this error. This

Mac OS: Intl extension is not loaded

时光怂恿深爱的人放手 提交于 2019-12-03 19:17:04
问题 macOS Mojave 10.14.3 PHP 7.1.23 Prestashop 1.7.5.1 I tried to install PHP intl extension on my local server in order to use Prestashop. I added extension=php_intl.so to etc/php.ini When I try to install Prestashop I get Intl extension is not loaded . $ php -m | grep intl When I do $ php -m | grep intl , I get: PHP Warning: PHP Startup: Unable to load dynamic library '/usr/local/lib/php/pecl/20160303/php_intl.so' - d lopen(/usr/local/lib/php/pecl/20160303/php_intl.so, 9): image not found in

NumberFormatter::SPELLOUT spellout-ordinal in russian and italian

六月ゝ 毕业季﹏ 提交于 2019-12-03 13:06:04
this code works for english, spanish and german ordninal numbers, but with russian or italian ordninal numbers it doesn't work. 'ru-RU' , 'it-IT' also don't work I get for example in russian for 2 -> два (this is the cardinal number) , but I want the ordinal number and this would be here 2 -> второй. I get for example in italian for 2 -> due (this is the cardinal number) , but I want the ordinal number and this would be here 2 -> secondo. Update: I found a solution with works in french, spain, german and some other languages: maskuline ordinal numbers: %spellout-ordinal-maskuline feminine

Can't get to install 'intl' extension for php on debian

浪子不回头ぞ 提交于 2019-12-03 06:32:32
问题 I have a debian server and I want to install the "intl" extension through pecl. During the installation it asks me: "Specify where ICU libraries and headers can be found [DEFAULT] :" Here I've been trying several options, including leaving it empty to use DEFAULT, but I get the following error: configure: error: C++ preprocessor "/lib/cpp" fails sanity check See config.log' for more details. ERROR: /tmp/pear/temp/intl/configure --with-icu-dir=DEFAULT' failed I've installed php5.3 with: make &

intl and icu configuration

心不动则不痛 提交于 2019-12-02 05:41:45
I've been working on a local development machine running Ubuntu 12 developing a Symfony2.3.5 application. All works well, until I uploaded the code and came across this: Could not load the resource bundle "/home/project/public_html/vendor/symfony/icu/Symfony/Component/Icu/Resources/data/region/en.res". The server is currently running the following: CENTOS 5.9 x86_64 standard WHM 11.38.2 (build 7) In WHM I've installed intl via the EasyApache installer, yet I'm still getting this error. This installed ICU 3.6 . My development version is 4.8.1, so about 10 years newer. Is the ICU version the

No releases available for package “pecl.php.net/intl”

北慕城南 提交于 2019-12-02 03:15:22
I'm trying to install intl for php. When I'm running sudo pecl install intl it gives me an error No releases available for package "pecl.php.net/intl" . I have tried to clear cache and also I tried to upgrade pear and pecl . Nothing. Here my pear and php versions: PEAR Version: 1.9.4 PHP Version: 5.6.3 Zend Engine Version: 2.6.0 Running on: Darwin iMac-bvc.local 14.5.0 Darwin Kernel Version 14.5.0: Tue Sep 1 21:23:09 PDT 2015; root:xnu-2782.50.1~1/RELEASE_X86_64 x86_64 Any ideas? Thanks in advance! To get it off the unanswered list: Well, problem solved! If you can't install intl by pecl you

CakePHP command line doesn't work when xdebug loaded

六月ゝ 毕业季﹏ 提交于 2019-12-01 20:25:59
问题 I'm trying to use xdebug against PHP 7.1.6 to troubleshoot a failing unit test in my CakePHP v3.3.6 project. I've set up xdebug using the following settings: [xdebug] xdebug.remote_enable = on xdebug.remote_host = 127.0.0.1 xdebug.remote_port = 9000 xdebug.remote_autostart = 1 xdebug.profiler_enable = off xdebug.profiler_enable_trigger = off xdebug.profiler_output_name = cachegrind.out.%t.%p xdebug.profiler_output_dir = "c:/wamp/tmp" xdebug.show_local_vars=0 xdebug.max_nesting_level=256 PHP

CakePHP command line doesn't work when xdebug loaded

跟風遠走 提交于 2019-12-01 20:05:12
I'm trying to use xdebug against PHP 7.1.6 to troubleshoot a failing unit test in my CakePHP v3.3.6 project. I've set up xdebug using the following settings: [xdebug] xdebug.remote_enable = on xdebug.remote_host = 127.0.0.1 xdebug.remote_port = 9000 xdebug.remote_autostart = 1 xdebug.profiler_enable = off xdebug.profiler_enable_trigger = off xdebug.profiler_output_name = cachegrind.out.%t.%p xdebug.profiler_output_dir = "c:/wamp/tmp" xdebug.show_local_vars=0 xdebug.max_nesting_level=256 PHP now connects to my xdebug client (VisualStudio Code) but as soon as I run phpunit ./vendor/phpunit

Preserve trailing zeroes using NumberFormatter in PHP

百般思念 提交于 2019-12-01 13:24:14
I'm working on upgrading a legacy system from PEAR's i18nv2 class to PHP's built-in INTL library. When I specify a pattern like #,##0.## and run NumberFormatter::format() on a number like 12345.1000 I get 12,345.1 shouldn't trailing zeroes be preserved? Is there a good way to add trailing zeroes after the fact taking into consideration that in many locales, a decimal is represented by a comma instead of the decimal character? Explained with code: $n = new NumberFormatter('en_CA', NumberFormatter::PATTERN_DECIMAL, '#,##0.##'); echo $n->format(12345.10000); http://icu-project.org/apiref/icu4c