Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91058 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 72492 invoked from network); 2 Feb 2016 21:57:51 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2016 21:57:51 -0000 Authentication-Results: pb1.pair.com smtp.mail=ocramius@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=ocramius@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.48 as permitted sender) X-PHP-List-Original-Sender: ocramius@gmail.com X-Host-Fingerprint: 209.85.215.48 mail-lf0-f48.google.com Received: from [209.85.215.48] ([209.85.215.48:35708] helo=mail-lf0-f48.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/A1-58334-E5621B65 for ; Tue, 02 Feb 2016 16:57:50 -0500 Received: by mail-lf0-f48.google.com with SMTP id l143so1391769lfe.2 for ; Tue, 02 Feb 2016 13:57:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; bh=/Y5SizKOHngbPqGq+FpH3gGPqBO4+3ni3NuW3cqRAuE=; b=Z/sVgzfJ17+9OpXHoEtfw8zOhiLz4dX80tx7hylA7BbTIM/X7vKxvZ7ulNm+oOP4kv or5s8Vr/GskBkx0LvdVUjK49o1KE6FJVGdqQyXzwnAgbjr55pJztUvp++ZpJGILAuXpL fo4bhDq/wKfWftabRxBdX6K3v88fQJw4qJ3D6ObyO/Z1T4G/qIVeKUW22aj7r9S3sF2W RwU7MBQHv4B/dKAo/EaEQeGyWISOvSE9IooyVHHiB8QeVSugwx4bNbQNBrDxnpwQpwIr 0HD1XknFgmAtxzHKpomYGv+dXewVSpzKPGVeplJ4fN+/zamJ5O6QHzY4ScMruW8RY9Ac dyzQ== 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:from:date :message-id:subject:to:cc:content-type; bh=/Y5SizKOHngbPqGq+FpH3gGPqBO4+3ni3NuW3cqRAuE=; b=TopPw/IauootIdiMU82dBcyo2g+u9WkU7fuZrIlHKAldle1X0KFMSrxYJu9nyi3zgS Z/ttN/YIg4w9RveSqeiy4J6SUzLrpgt/C91RmrvQYscpvpOPr8FU4IdoHqiZ9p/PZOpH OAkJehEPig5N6zEcDLfSMg6V7zY/dYKj+xA/7br/1H/Z7L3NmWGDpZpPEtu7LhiZwo4d 98Luw6YzoW+rLbxmp+CltkRr1T1Eymn1rQK4HaEABEWRu/peL9oh9cgmsUh9xGblV0s4 pu6ZHzbtTyXjbPOHUcfaXo+H1FArlieBnyTk1Z2NhSqtEBIxQ3xGUQmIXN7yNuc2+Qrr 4nhA== X-Gm-Message-State: AG10YOR4CB6y3em2B7XB5oMTW8KLrT6ibzD+yXOVxADDtBRTosguCtXOBh+tTAf1168p79p9pLWmTmZBg1pPWw== X-Received: by 10.25.152.199 with SMTP id a190mr13237154lfe.133.1454450266841; Tue, 02 Feb 2016 13:57:46 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.199.234 with HTTP; Tue, 2 Feb 2016 13:57:27 -0800 (PST) In-Reply-To: References: Date: Tue, 2 Feb 2016 22:57:27 +0100 Message-ID: To: Tim Bezhashvyly Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a114034667faba3052ad09741 Subject: Re: [PHP-DEV] Drop map/reduction/filter warnings From: ocramius@gmail.com (Marco Pivetta) --001a114034667faba3052ad09741 Content-Type: text/plain; charset=UTF-8 This is already the case for PHP 7.x: https://3v4l.org/0Qinj Marco Pivetta http://twitter.com/Ocramius http://ocramius.github.com/ On 2 February 2016 at 22:53, Tim Bezhashvyly wrote: > Dear internals, > > I would like to propose the following RFC: > > If an exception is thrown inside array_reduce, array_map, array_filter, > etc callback don't flush meaningless warnings like: > > > An error occurred while invoking the reduction callback ... > > but pass an exception from a closure outside. > > Currently this can be achieved by muting array_* with a @ but this is ugly. > > Regards, > Tim > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php > > --001a114034667faba3052ad09741--