On Sat, Feb 4, 2017 at 11:16 AM, Nikita Popov <nikita....@gmail.com> wrote:
> On Fri, Feb 3, 2017 at 9:44 PM, Scott Arciszewski <sc...@paragonie.com>
> wrote:
>>
>> I've opened the vote for the libsodium RFC.
>>
>> https://wiki.php.net/rfc/libsodium
>>
>> See https://externals.io/thread/626 for the previous discussion topics.
>>
>> The vote closes at 21:00 UTC (4 PM Eastern Time) next Friday.
>
>
> I just took a very quick look at the extension source. One question: Right
> now it throws recoverable fatal errors all over the place. Why doesn't it
> use exceptions instead? We replaced (to the most part) use of recoverable
> fatals with exceptions in PHP 7 and reintroducing them in this quantity
> would be highly dubious to me.
>
> Also a question on maintenance: If this extension is bundled, will the
> source compatibility with PHP 5 be removed, or do you plan on keeping a
> single code-base for the bundled extension and PECL, with support for PHP 5?
> None of the current bundled extensions do this, as it is a significant
> maintenance burden.
>
> Thanks,
> Nikita

Hi Nikita,

> I just took a very quick look at the extension source. One question: Right
> now it throws recoverable fatal errors all over the place. Why doesn't it
> use exceptions instead? We replaced (to the most part) use of recoverable
> fatals with exceptions in PHP 7 and reintroducing them in this quantity
> would be highly dubious to me.

I don't know why it doesn't (my guess: that part of the code simply
wasn't updated); but if we include libsodium in 7.2, I'd definitely
switch everything to use exceptions instead of fatal errors, for
exactly the same reasons laid out in the discussion over random_*
throwing exceptions in 7.0.

> Also a question on maintenance: If this extension is bundled, will the
> source compatibility with PHP 5 be removed, or do you plan on keeping a
> single code-base for the bundled extension and PECL, with support for PHP 5?
> None of the current bundled extensions do this, as it is a significant
> maintenance burden.

Definitely drop PHP 5 support in the extension that is bundled with
PHP 7.2 (although the PECL extension can keep it),

Scott Arciszewski
Chief Development Officer
Paragon Initiative Enterprises <https://paragonie.com>

-- 
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to