Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:77013 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4599 invoked from network); 1 Sep 2014 18:13:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 1 Sep 2014 18:13:05 -0000 Authentication-Results: pb1.pair.com header.from=ajf@ajf.me; sender-id=pass Authentication-Results: pb1.pair.com smtp.mail=ajf@ajf.me; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain ajf.me designates 192.64.116.216 as permitted sender) X-PHP-List-Original-Sender: ajf@ajf.me X-Host-Fingerprint: 192.64.116.216 imap10-3.ox.privateemail.com Received: from [192.64.116.216] ([192.64.116.216:60183] helo=imap10-3.ox.privateemail.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 72/20-03336-E27B4045 for ; Mon, 01 Sep 2014 14:13:03 -0400 Received: from localhost (localhost [127.0.0.1]) by mail.privateemail.com (Postfix) with ESMTP id 5F5072400C2; Mon, 1 Sep 2014 14:12:59 -0400 (EDT) X-Virus-Scanned: Debian amavisd-new at imap10.ox.privateemail.com Received: from mail.privateemail.com ([127.0.0.1]) by localhost (imap10.ox.privateemail.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id WJk-zQE6kOBl; Mon, 1 Sep 2014 14:12:59 -0400 (EDT) Received: from [192.168.0.2] (05439dda.skybroadband.com [5.67.157.218]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.privateemail.com (Postfix) with ESMTPSA id A084E24005D; Mon, 1 Sep 2014 14:12:56 -0400 (EDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) In-Reply-To: Date: Mon, 1 Sep 2014 19:12:54 +0100 Cc: Xinchen Hui , PHP Internals Content-Transfer-Encoding: quoted-printable Message-ID: References: To: Chris Wright X-Mailer: Apple Mail (2.1878.6) Subject: Re: [PHP-DEV] Make zend_parse_parameters emit E_RECOVERABLE_ERROR From: ajf@ajf.me (Andrea Faulds) 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=92m not sure we even document zip=92s behaviour anywhere in the = manual, which means users don=92t know what to expect. >> To help BC, we could even make it do the old thing if @ is being used = to silence it. >=20 > Don't like this I=92m not sure I do either, it=92s 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 = for this. -- Andrea Faulds http://ajf.me/