Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87182 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 17594 invoked from network); 15 Jul 2015 11:30:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 15 Jul 2015 11:30:49 -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.180 cause and error) X-PHP-List-Original-Sender: scott@paragonie.com X-Host-Fingerprint: 209.85.220.180 mail-qk0-f180.google.com Received: from [209.85.220.180] ([209.85.220.180:36558] helo=mail-qk0-f180.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 1A/33-27477-86446A55 for ; Wed, 15 Jul 2015 07:30:49 -0400 Received: by qkdv3 with SMTP id v3so25496901qkd.3 for ; Wed, 15 Jul 2015 04:30:46 -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:cc:content-type; bh=EDgFpKzyPdvRZC132jhT3ZBfgSAhwGa9/+uapJa85nA=; b=E6OKoCItP5nIjzhNAkZblbQHsoxmnfQAHaewFjbRMt0p+cQk2tzLPYNUasm8i8zHGB qIg1HSZ30MC3nwGu2b00fVaQKslCELBPCXwHwINN03RZEoTFuSkXCMgsKqYxnWSRhTKV 4Y7G0NLLM0p32k56N5TVuppIemgriT57ZnH39w+aYxJwZpbGJNILDD9akrCqCpFmCOxd Y2NxA+xE0qEfalCAa3w1W3PE2ByRCD3FFrwTIBDgOEv86yMAL75C4E60j3RQjzuz0F/Y 8E5vuOoT/wNxdY+PS9P7Wh1criLxTIeStIbqQJVvCyJ7+w8Bo5NvL1Tgp8rGWE9S7nIQ s7zw== X-Gm-Message-State: ALoCoQl7KA2QKQdIAGWXe9YCvoLHqCLgiI/NW9u2goq3E/V/ZMG+bL62Swa0JVg31v51qr4N+FjR MIME-Version: 1.0 X-Received: by 10.140.85.208 with SMTP id n74mr7190976qgd.67.1436959846663; Wed, 15 Jul 2015 04:30:46 -0700 (PDT) Received: by 10.96.83.102 with HTTP; Wed, 15 Jul 2015 04:30:46 -0700 (PDT) X-Originating-IP: [71.47.14.165] In-Reply-To: References: Date: Wed, 15 Jul 2015 07:30:46 -0400 Message-ID: To: Yasuo Ohgaki Cc: PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Core functions throwing exceptions in PHP7 From: scott@paragonie.com (Scott Arciszewski) try { random_*(); } catch (SomeException $e) { // Something } ... is far cleaner than telling developers to override the error handler for one specific function. That said, I won't oppose E_RECOVERABLE_ERROR or E_ERROR if that's what the rest of the Internals team settles on. Just don't expect me to be quiet when, in future versions, we transition back to an Exception. Failing closed is my only priority here. Scott Arciszewski Chief Development Officer Paragon Initiative Enterprises On Wed, Jul 15, 2015 at 7:27 AM, Yasuo Ohgaki wrote: > Hi Scott, > > On Wed, Jul 15, 2015 at 8:20 PM, Scott Arciszewski > wrote: >> >> At what point do we stop blaming the developers for not knowing how to >> use our badly designed features, and accept responsibility for >> exposing an API that is hostile towards simple, efficient, and correct >> implementations? > > > I fully agree with this. > Isn't E_RECOVERABLE_ERROR enough for random_*()? > > Regards, > > -- > Yasuo Ohgaki > yohgaki@ohgaki.net