Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87845 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 95125 invoked from network); 21 Aug 2015 21:26:54 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Aug 2015 21:26:54 -0000 Authentication-Results: pb1.pair.com smtp.mail=narf@devilix.net; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=narf@devilix.net; sender-id=pass Received-SPF: pass (pb1.pair.com: domain devilix.net designates 209.85.214.182 as permitted sender) X-PHP-List-Original-Sender: narf@devilix.net X-Host-Fingerprint: 209.85.214.182 mail-ob0-f182.google.com Received: from [209.85.214.182] ([209.85.214.182:36531] helo=mail-ob0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id CB/11-19109-C9797D55 for ; Fri, 21 Aug 2015 17:26:52 -0400 Received: by obkg7 with SMTP id g7so69221126obk.3 for ; Fri, 21 Aug 2015 14:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=devilix.net; s=google; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=/REhHaO8t5sY2H1NZEvQlwNKng7NbdVrx9iDCEIBMgg=; b=u3sOc1mm9RG2qsnnpJPZHYciBt2fi1NyGyHVDzvc4CacZt8kCDT/V0ihmVS4iuzZWC AV4Rs/srUXO37vBvr4294AduJH0YaFvlXx3btqTvveRPWQzFJs9BzyWdbS9uSQVJzbsL C4+1EtNRU3RGgRQkJaWgEv5CU/Mc7F0eyOM08= 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=/REhHaO8t5sY2H1NZEvQlwNKng7NbdVrx9iDCEIBMgg=; b=DWrrg3b4GfMCnoCtknkChmc7Qc75AvZUxGI6Gts4qyhGvy6MZXnlva6/Slxg3eCTBv SnNunuA3de10UrVISgzV57ZD8Oj+bhB/oVQFPrgrSfSzxDK1V8r8g91mZSyuQxfHGsRQ EpRA1sl6XgARklXE1s27rWVnEIRHM3o1abZ2L/IXB/SqEfMVbZIopbyzX/sEUeoYeueG gZrzEG93WhbgvJVXFr0jr64vJdCWbFKvzYUY/RJaEecyLx4TMe2KSlbmXRoQAI6Ku6/L 6Oo2kVWmIwpaXWEq0kyFdpLVCT6skuVy8ngBaUlBtGm5AgSSQPlxC9M/ooMAAL99GIml iBgw== X-Gm-Message-State: ALoCoQmhvTeYOmR6VE1cMwHCl2tGcAmkqfpP0sjJ1evPR41Ce9sMMO0+2b2EEfrq4EZ3l0fP/r5q MIME-Version: 1.0 X-Received: by 10.182.76.1 with SMTP id g1mr10131554obw.2.1440192409191; Fri, 21 Aug 2015 14:26:49 -0700 (PDT) Received: by 10.202.185.198 with HTTP; Fri, 21 Aug 2015 14:26:49 -0700 (PDT) In-Reply-To: References: <99CE9AAF-E6E9-4D37-B462-E4A63139EAFB@icicle.io> Date: Sat, 22 Aug 2015 00:26:49 +0300 Message-ID: To: Anthony Ferrara Cc: Scott Arciszewski , Pierre Joye , Trevor Suarez , Niklas Keller , PHP Internals Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Recap - Core functions throwing exceptions in PHP7 From: narf@devilix.net (Andrey Andreev) Hi, On Fri, Aug 21, 2015 at 4:36 PM, Anthony Ferrara wrote: > > MHO is this is too important of a distinction to simply gloss over. > Having it return false (or null) will be a problem, as nobody will > perform the error checks. And returning $x where `$x == 0` in a > security context could be incredibly bad. As such, I think the > security implications here outweigh nearly all of the other concerns > about consistency and convention. ^ That! Please don't sweep this under the carpet. Yes, the RFC and release processes are vital, and consistency is desirable, but neither should be an excuse for what could be a horrible mistake here. Cheers, Andrey.