Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87022 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 6533 invoked from network); 4 Jul 2015 23:53:25 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 4 Jul 2015 23:53:25 -0000 Authentication-Results: pb1.pair.com header.from=ua.san.alex@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ua.san.alex@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.223.178 as permitted sender) X-PHP-List-Original-Sender: ua.san.alex@gmail.com X-Host-Fingerprint: 209.85.223.178 mail-ie0-f178.google.com Received: from [209.85.223.178] ([209.85.223.178:36230] helo=mail-ie0-f178.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C2/00-05814-4F178955 for ; Sat, 04 Jul 2015 19:53:24 -0400 Received: by iecvh10 with SMTP id vh10so94505503iec.3 for ; Sat, 04 Jul 2015 16:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=I3BKDRuHFjTlxPxq4s8HnuqC8YCacMcBjmnr4GRl+8M=; b=mH4/7ST6TqD93Cc/m5tzaDl3gdyBp4tThVppNcJXXZViXGHODi92SWVeLjnDMHyGLs ilhHZtjAAiKjdlI7lMXwF4KXlmE3LNzgyyYu3Xsd3NchxrHbMKGMZsO+vH67+sBk3hlu 4ud0VOaF42axNunyFFjfX6jdVnjh1kHTBe3mMfIqIF0uct83dQHaa4FsyV/yWnlRp0/z v9NF3q3SS4L83TSztqwwuNvcztyrg39g8f8qtSnNpiJIrL+YLK+DNJm5A7KvjHsH4Hle gKqd0B7KhiUTO6jIbGbNf5bI2AzN7wWxMGQwn7BditFov/zC6yxoec/LARRPHVTZ3iMX Y3Aw== MIME-Version: 1.0 X-Received: by 10.50.93.69 with SMTP id cs5mr61591592igb.4.1436054001396; Sat, 04 Jul 2015 16:53:21 -0700 (PDT) Received: by 10.50.246.20 with HTTP; Sat, 4 Jul 2015 16:53:21 -0700 (PDT) In-Reply-To: References: <33BCE1D0-BA6D-464C-B23D-69AF71356111@ajf.me> <3932E76B-DC75-40CD-8B1A-B84F387707CC@ajf.me> <1EFE20ED-ED80-47D1-B697-58CA4359CA62@ajf.me> Date: Sun, 5 Jul 2015 02:53:21 +0300 Message-ID: To: Bob Weinand Cc: Andrea Faulds , Sherif Ramadan , =?UTF-8?B?SmFrdWIgS3Viw63EjWVr?= , Dmitry Stogov , PHP Internals , Nikita Popov , Aaron Piotrowski , Levi Morrison Content-Type: text/plain; charset=UTF-8 Subject: Re: [PHP-DEV] Fix division by zero to throw exception (round 2) From: ua.san.alex@gmail.com ("S.A.N") > You ideally just check if the divisor is 0 and then do the operation. > And at that point, we should just throw the DivisionByZeroError. > > Honestly, a warning is just the wrong thing to use. Either you enable it (like double division in C) or disable it completely (runtime exception in C). > > I can get behind both, but not behind a warning. +1