Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87488 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 30586 invoked from network); 1 Aug 2015 22:14:45 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Aug 2015 22:14:45 -0000 Authentication-Results: pb1.pair.com header.from=scott@paragonie.com; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=scott@paragonie.com; spf=permerror; sender-id=unknown Received-SPF: error (pb1.pair.com: domain paragonie.com from 209.85.220.181 cause and error) X-PHP-List-Original-Sender: scott@paragonie.com X-Host-Fingerprint: 209.85.220.181 mail-qk0-f181.google.com Received: from [209.85.220.181] ([209.85.220.181:35989] helo=mail-qk0-f181.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1B/82-08505-4D44DB55 for ; Sat, 01 Aug 2015 18:14:45 -0400 Received: by qkdv3 with SMTP id v3so40335479qkd.3 for ; Sat, 01 Aug 2015 15:14:41 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=T/I1rYEgaVuFEGfhK2Png441zyqmbRM7pTp2oLJNcbQ=; b=HmW3lQdUVnQnOTrCSMifWvihbcYOCP19PN06FibMNrrQ/IWXkJopSgSTEfEUulodqV qB9CQzx/x6vfr2m6duEC9TgHWCQV9SDO778uqkSAoOQB/vPRvSRyu27DaEjJZQNMnLzp Qn8rENnFPPRnlzPn/eJUSxBa+fS+DVdcOlsik1EzziveqezpUEwfrUErlm0ihscJg15z nhWn+wsErFGNXVjbMxFKz4bdqPmT7EdFQuHvW3kipFSkP975NvjoayoOD+wWoDM+XH/R tAZRBdZZuGUgMSZuKkMXwQ0XzLUs2sgRz6wmckEX/SDefiItvAkGtRpmLSuoZxJVv1z0 zeuQ== X-Gm-Message-State: ALoCoQl+cAA2I0v7ZGj5dyDD+S1aXruFB9nc14MSFlMqc4/38jOLfm2Gc40/5SW+b7yfur5BK4Un MIME-Version: 1.0 X-Received: by 10.55.19.14 with SMTP id d14mr1357291qkh.95.1438467281339; Sat, 01 Aug 2015 15:14:41 -0700 (PDT) Received: by 10.96.83.102 with HTTP; Sat, 1 Aug 2015 15:14:41 -0700 (PDT) In-Reply-To: References: Date: Sat, 1 Aug 2015 18:14:41 -0400 Message-ID: To: Nikita Popov , PHP Internals , Aaron Piotrowski Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Core functions throwing exceptions in PHP7 From: scott@paragonie.com (Scott Arciszewski) On Sat, Aug 1, 2015 at 6:37 AM, Nikita Popov wrote: > tl;dr: This should definitely throw, but I'm as yet unclear as to *what* it > should throw. My gut says zpp should throw Error, length/min/max errors > should throw Error and the randomness-not-available condition should throw > Exception. Hi Nikita, This sounds reasonable to me. As I've said before, I don't have any real preference for which is thrown. If Aaron (author of the Throwable RFC that passed unanimously) wants to chime in, I'd almost certainly go with whatever you, him, and Anthony could agree on. Scott Arciszewski Chief Development Officer Paragon Initiative Enterprises