Re: libidn2 extension for php
| From: | Hannes Magnusson | Date: | Tue, 01 Nov 2011 15:35:31 +0000 |
| Subject: | Re: libidn2 extension for php | ||
| References: | 1 2 3 4 5 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-8789@lists.php.net to get a copy of this message | ||
2011/11/1 Miroslav Kubelík <koubel@seznam.cz>:
> On Tue, 01 Nov 2011 15:09:22 +0100, Hannes Magnusson
> <hannes.magnusson@gmail.com> wrote:
>
>
>>> I don't check if these functions are really available in my locally
>>> installed php binary
>>> but in the page http://php.net/idn_to_utf8 is written:
>>> (PHP 5 >= 5.3.0, PECL intl >= 1.0.2, PECL idn >= 0.1)
>>>
>>> is these functions really available in stable branch as I understand
>>> Pierre's sentences?
>>
>> Yes. If you enable the intl extension as of PHP5.3 (or install it via
>> pecl for 5.2), you'll get those functions too.
>>
>
> OK. It seems that php documentation is wrong:
> (PHP 5 >= 5.3.0, PECL intl >= 1.0.2, PECL idn >= 0.1)
> no PECL idn isn't needed for PHP 5 >= 5.3.0, only intl.
You are reading it wrong. It means;
- This function is available as part of the PHP5.3.0 release and later
- This function is available if you install pecl/intl 1.0.2 or later
- This function is available if you install pecl/idn 0.1 or later
Which means, if you are running 5.3, you don't need (nor can you)
install pecl/intl or pecl/idn.
If you are running pre 5.3, you can install either pecl/intl or pecl/idn.
-Hannes