How to install INTL into Php 5.5.9 using PHPBREW

235 Views Asked by At

I'm working on some legacy code using PHP 5.5.9.

Which uses intl.

I installed php 5.5.9 with PhpBrew on my mac machine running:

phpbrew install  --mirror=https://www.php.net  php-5.5.9 +default +mysql +pdo +openssl=/usr/local/opt/openssl +bz2=/usr/local/opt/bzip2 +curl=/usr/local/opt/curl +zlib=/usr/local/opt/zlib

Now i successfully have a working php 5.5.9 on my machine.

When i try to install INTL using:

sudo ./pecl install intl

And give path for icu4c version 58.1. It installs.

PHP info says:

enter image description here

But when i:

<?php
$formatter = new IntlDateFormatter('NL_nl', null, null);
var_dump($formatter);
phpinfo();
exit;

It always returns NULL.

How is this possible?

THanks in advance.

0

There are 0 best solutions below