Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:70562 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56093 invoked from network); 9 Dec 2013 18:09:59 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 9 Dec 2013 18:09:59 -0000 Authentication-Results: pb1.pair.com smtp.mail=nikita.ppv@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=nikita.ppv@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.219.50 as permitted sender) X-PHP-List-Original-Sender: nikita.ppv@gmail.com X-Host-Fingerprint: 209.85.219.50 mail-oa0-f50.google.com Received: from [209.85.219.50] ([209.85.219.50:54553] helo=mail-oa0-f50.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E2/00-55888-67706A25 for ; Mon, 09 Dec 2013 13:09:58 -0500 Received: by mail-oa0-f50.google.com with SMTP id n16so4264665oag.23 for ; Mon, 09 Dec 2013 10:09:55 -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=3UsHcfkz5u8pm6A4R/rvLqua/l2z3WzLHnX8yUi028k=; b=iwyWzyYo4onFePaP270ZvcqAA4qJXh2ru/J2PqrGppQHBr6S1MwFqduhbo6mB7tHEJ 8HwhWhTbuhcVr6FFVroHVqj/W37malm76U78isgGNCxGc5kdppj/7Ppz4VOk1DJwNB8u +MeJsJisR1PnKuo0cpd+ypyi67i+M/Jur9log3ROMeVP8hTr1Az/94dpWO2VCayt+UaF 0aDTONaXCMm0tVwlfGEKwuoQNxbW0nOuGN6Fvq891iWHzpdf1ZbuCape0oodxmQxr7Av F6juF/z1/RGdcUt63xyrgUz0wokPbpIrx7J08jlMxZua7Ww5vROVACZUWChTiAQ/ua8t ePWA== MIME-Version: 1.0 X-Received: by 10.60.60.105 with SMTP id g9mr13593536oer.8.1386612595232; Mon, 09 Dec 2013 10:09:55 -0800 (PST) Received: by 10.182.54.112 with HTTP; Mon, 9 Dec 2013 10:09:55 -0800 (PST) In-Reply-To: References: Date: Mon, 9 Dec 2013 19:09:55 +0100 Message-ID: To: Pierre Joye Cc: PHP internals Content-Type: multipart/alternative; boundary=089e0149d0ae2e273804ed1de7f6 Subject: Re: [PHP-DEV] [VOTE] Allowing use of exceptions in the engine From: nikita.ppv@gmail.com (Nikita Popov) --089e0149d0ae2e273804ed1de7f6 Content-Type: text/plain; charset=ISO-8859-1 On Mon, Dec 9, 2013 at 4:39 PM, Pierre Joye wrote: > I do not mind having it in 5.x or 6. but I do mind introducing > exceptions in the core without defining what we want. Baby steps are > nice but where do we stop at this stage then? Can we use exceptions in > extensions as well? Or in other parts of the engine? This is a very > good move forward but also a very critical move. We need to clarify > how we do it, where it can be done, naming or how we want them > exactly, etc. > > That's why I can't vote yes with this exact proposal (and its state). > Is there something particular that you would like to have clarified or specified? I tried to keep the scope narrow - only engine and only fatal errors, but if you wish to have stricter specification on some parts, please say so. About your particular questions: > Can we use exceptions in extensions as well? This RFC is only about the engine - it does not affect our standard library exts. The rules there stay the same: Functions throw warnings/notices, methods may throw exceptions. > Or in other parts of the engine? What do you mean by "other parts"? I'm referring to the Zend engine as a whole, though primarily the executor, because converting compile-time errors will require more careful planning. Thanks, Nikita --089e0149d0ae2e273804ed1de7f6--