Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:91059 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 73349 invoked from network); 2 Feb 2016 21:58:22 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 2 Feb 2016 21:58:22 -0000 Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.160.175 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.160.175 mail-yk0-f175.google.com Received: from [209.85.160.175] ([209.85.160.175:36055] helo=mail-yk0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 00/D1-58334-E7621B65 for ; Tue, 02 Feb 2016 16:58:22 -0500 Received: by mail-yk0-f175.google.com with SMTP id z7so1995529yka.3 for ; Tue, 02 Feb 2016 13:58:22 -0800 (PST) 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=EpyFuewpcL0HPoEbQrq27YqVk9gdMTZc7GhISnKGYKI=; b=lHlFgOKrj3UH/c989Cgm4445nPxFdRxlmQbEvOGloPlAohpjCLvz28TnN15SMiEVL2 HrRx0WP+immeqJaTbShqDK0Z3W8htO04VoW/6CWd3kx7HjglMQNpBNugSflE7R4Rwb7G CdKRCoQTmypgofD1CiWFrCSyEGjA2Oa1u2CEA8n1EOI/p7kEjtOyfwbzWFji7293b98F GohV/rr3P3dJMftk/1YNL1UVK8YYS0DIBQevQVW7pclN/6U42Kg+XPHHLidglhgajnkx P0+/Z9+VhWYOqddn7DXgODsU+gCnkkOWFk3T8rgMl59z3W1QcDK5IW6a6Qz04qqD2zAl D/tA== 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=EpyFuewpcL0HPoEbQrq27YqVk9gdMTZc7GhISnKGYKI=; b=Ki021oWPj9jSauKhfpPLiDKBlKv0M70c4F8VWEMWeZO8GHXugRaIXeldIJ2ZICik8D Pktu9sLmRcb6L/Xr3vcWHixdrYubZMPtuR6VpRpg1QCKRCveZneoL2gfjjlQEQxE0FkD aVGG8r6uAdAvPT9CLI4zc22pBHMVnsVarCciI+Ex9m13frwh2t38+AkYZAIuJ/tRztSW PqDMspE5mSJSXz04azcCB/vINZdVGMxM7xxFt4lpo/2Bg0M4SjFZpapaw9tjhUlBWQZu tFSlgaIE5yhyXZDwQTG8bluUr2KRJUtz5pxmILsVQuKQr9tumPQUXbthJYcrHiaJOLpK QVfA== X-Gm-Message-State: AG10YOQTksN0sy7tvnZeZn/wJeMLYfPhXI20u701uRobRuUzK3pPbWyxsPaAcLJgFB/38Q3k/tuwPgUpYSgmmQ== MIME-Version: 1.0 X-Received: by 10.37.3.137 with SMTP id 131mr21183824ybd.46.1454450297374; Tue, 02 Feb 2016 13:58:17 -0800 (PST) Received: by 10.129.148.70 with HTTP; Tue, 2 Feb 2016 13:58:17 -0800 (PST) In-Reply-To: References: Date: Tue, 2 Feb 2016 22:58:17 +0100 Message-ID: To: Tim Bezhashvyly Cc: PHP Internals Content-Type: multipart/alternative; boundary=001a11c045ce5194e3052ad09911 Subject: Re: [PHP-DEV] Drop map/reduction/filter warnings From: nikita.ppv@gmail.com (Nikita Popov) --001a11c045ce5194e3052ad09911 Content-Type: text/plain; charset=UTF-8 On Tue, Feb 2, 2016 at 10:53 PM, 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. > This has already been fixed in PHP 7, see for example https://3v4l.org/GmnIV . Nikita --001a11c045ce5194e3052ad09911--