Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:84384 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 98373 invoked from network); 6 Mar 2015 15:41:43 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2015 15:41:43 -0000 Authentication-Results: pb1.pair.com header.from=patrickallaert@php.net; sender-id=unknown Authentication-Results: pb1.pair.com smtp.mail=patrick.allaert@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.169 as permitted sender) X-PHP-List-Original-Sender: patrick.allaert@gmail.com X-Host-Fingerprint: 74.125.82.169 mail-we0-f169.google.com Received: from [74.125.82.169] ([74.125.82.169:40955] helo=mail-we0-f169.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D7/42-16282-2BAC9F45 for ; Fri, 06 Mar 2015 10:41:39 -0500 Received: by wevk48 with SMTP id k48so16778761wev.7 for ; Fri, 06 Mar 2015 07:41:36 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=mime-version:references:from:date:message-id:subject:to:cc :content-type; bh=2iDdtyIe1pKR2okE7ks3ULXcSy0vpRrZLRIdL0dgkEc=; b=lBZHdkjs7GuTWQE9caT9Sb+AEFivLTlhMh3aVtEC8g6ukCT4cvsrWliUEw2Egsjg2/ wby1Dc0SOAdSw9XoKmnok/Z7ZLsByptZWhlDXm1cWsKztPt8mBK7LQIyde6fAUd7V5Rp qCVxpZW5kynBvAWBu57OVe0meYqtZWkRpprj1Mx+Tg7S0LW9gcQufwz2WswL5er6CtmJ 14NJUqc/in217Iu20wRbyuK36cW84ZV4WlXGvUYz2tap4RCHHIyVVpMxD4ozCEZTePQw Nu5T2hgroAlop6jTw8+zhI66YiVRPcUc/mMfw0Dz23Ts8/hmDxvLjdGJ7ollxs/M29b2 3Big== X-Received: by 10.181.13.42 with SMTP id ev10mr34139031wid.69.1425656495980; Fri, 06 Mar 2015 07:41:35 -0800 (PST) MIME-Version: 1.0 References: Date: Fri, 06 Mar 2015 15:41:35 +0000 Message-ID: To: Andrea Faulds , Chris Wright Cc: Xinchen Hui , PHP Internals Content-Type: multipart/alternative; boundary=f46d04388df103c6590510a08566 Subject: Re: [PHP-DEV] Make zend_parse_parameters emit E_RECOVERABLE_ERROR From: patrickallaert@php.net (Patrick ALLAERT) --f46d04388df103c6590510a08566 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Le lun. 1 sept. 2014 =C3=A0 20:13, Andrea Faulds a =C3=A9crit = : > > On 1 Sep 2014, at 17:29, Chris Wright wrote: > > > It's also worth noting that the "return NULL on zpp failure" > > convention is not followed to the letter, I have seen places that > > RETURN_FALSE - I can't remember exactly where I have seen this but I > > will dig a ref out if anyone wants it. > > Good point. This is also, it has to be said, quite rarely documented. I= =E2=80=99m > not sure we even document zip=E2=80=99s behaviour anywhere in the manual,= which > means users don=E2=80=99t know what to expect. > > >> To help BC, we could even make it do the old thing if @ is being used > to silence it. > > > > Don't like this > > I=E2=80=99m not sure I do either, it=E2=80=99s merely a suggestion if it = would help BC, > but it probably not a good idea, as @ should only suppress errors, not > change behaviour. > > > I'm roughly -0.5 on this proposal overall. I'd like this to be easily > > handleable in userland, but I don't like E_RECOVERABLE_ERROR (in > > general, not just here). I'd very much support this if it used > > exceptions, though. > > Perhaps this could be postponed until Nikita Popov can revive his > Exceptions in the Engine RFC. If that were to pass, I could make an RFC f= or > this. > -- > Andrea Faulds > http://ajf.me/ I don't have an opinion yet as I have to think a bit more about it. I have the impression that giving the user to bail out on specific error levels would be less intrusive as he would be able to opt-in for it. See the "Pedantic errors (Was: Re: [PHP-DEV] [RFC][VOTE] Improve array to string conversion)" thread. I would be glad to gather some opinions to see if it is worth investigating. Cheers, Patrick --f46d04388df103c6590510a08566--