Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:98187 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 5679 invoked from network); 4 Feb 2017 16:23:37 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Feb 2017 16:23:37 -0000 Authentication-Results: pb1.pair.com smtp.mail=scott@paragonie.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=scott@paragonie.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain paragonie.com designates 74.125.82.175 as permitted sender) X-PHP-List-Original-Sender: scott@paragonie.com X-Host-Fingerprint: 74.125.82.175 mail-ot0-f175.google.com Received: from [74.125.82.175] ([74.125.82.175:33846] helo=mail-ot0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C3/16-38491-80006985 for ; Sat, 04 Feb 2017 11:23:37 -0500 Received: by mail-ot0-f175.google.com with SMTP id f9so35501546otd.1 for ; Sat, 04 Feb 2017 08:23:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=paragonie-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=eLmM9KR6kfkKeG/Q0D1FtK9BDDlHsG/wdQq7ejzEUio=; b=KcOt+pjumI2H8ZKLGWIO+SrGJBaFg/vDf/uUXoG/OekZQ4QF/oyByz2PpVfO3zfcAz 4vAnc+TpNrepIdLspDOVa8vMU0hznOerkcvLa1CSIqFVABtbbhykd3b63racirrzGHvv bLjjaJSU7vB7o554xarQNcq5OHxT4RThaG9lRpx7h5h+ZxjQe5yMIB17m79Mx1l5WAxS /jnWdNZtc2Rb7W8Y1nvnNV2Z/srudXxjPARroHfjoFfRh3gXVfzARvRPVHL2zMtqcGM3 tRT+SC6Ld7resfFmhRVBdnSFQuOXkn5W4ic7u8Lmc9UB3/MOOoWOdRXNeCD3ShC2z1o3 arcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=eLmM9KR6kfkKeG/Q0D1FtK9BDDlHsG/wdQq7ejzEUio=; b=jOB8IQJfubtAATpz6iBSYeA0TVLmUz1IN6YcXvnXQNCPPtAWWYZnWcCdehTInCxxQv RIsx9pf8Rb3Swv5g7VXSmYefQyqHvJNjneK7ZydIUjKlKMsek80AAJiZKtLIXv3IN3DE Uy9R15g5+LVsWnz7y2/hrqKU63D3AOssZ06pqk5YF51jahmLWZoj1bTp2/v6JSAz82PM InzTOHZPlJfvMVd2vNI8SHwaVgg6jaSZQs/DPtCBBKih3y1dj+PjeyS8okx0/60oK+tR m17uxBxPXo8g30lbKz/4g5DEWJ2ZRC0xCXsmtiCbBYj0/2lArIpB9Yp8A9WLkIFwi5Ch 9ioA== X-Gm-Message-State: AMke39nJxZQMkylVNS6iNBeu/w4SqTNDWntTbndWjxcQKvqlBttDWbwZ/gHc/gFF87bg1fPpMVX/doZgu+pOXQ== X-Received: by 10.157.63.211 with SMTP id i19mr1142017ote.63.1486225413708; Sat, 04 Feb 2017 08:23:33 -0800 (PST) MIME-Version: 1.0 Received: by 10.157.56.141 with HTTP; Sat, 4 Feb 2017 08:23:33 -0800 (PST) In-Reply-To: References: Date: Sat, 4 Feb 2017 11:23:33 -0500 Message-ID: To: Nikita Popov Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] [RFC] [VOTE] Libsodium as a core extension in PHP 7.2 From: scott@paragonie.com (Scott Arciszewski) On Sat, Feb 4, 2017 at 11:16 AM, Nikita Popov wrote: > On Fri, Feb 3, 2017 at 9:44 PM, Scott Arciszewski > 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