Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94289 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 2368 invoked from network); 27 Jun 2016 19:53:18 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Jun 2016 19:53:18 -0000 Authentication-Results: pb1.pair.com smtp.mail=smalyshev@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=smalyshev@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.192.174 as permitted sender) X-PHP-List-Original-Sender: smalyshev@gmail.com X-Host-Fingerprint: 209.85.192.174 mail-pf0-f174.google.com Received: from [209.85.192.174] ([209.85.192.174:33686] helo=mail-pf0-f174.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C5/4A-40393-C2481775 for ; Mon, 27 Jun 2016 15:53:17 -0400 Received: by mail-pf0-f174.google.com with SMTP id i123so64836905pfg.0 for ; Mon, 27 Jun 2016 12:53:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=fOT5wTblyMMRDyLhRHqU2xiTUzrEXAiR1+2kK1forYg=; b=jwRV6An5gsxEVPGYwN45fqr0ioM9q1fjYAbEuvQnbB10m6GMMwabf39L8qA/g0m0hD 4yPBuDf815lKupk9HjlLHkZYHpq0cMmP5dzWnFpMgrikSqmqYh4TkLz8Q5l+FKMBlIw4 olQEV1BZ2LrkFVaVrcYOfGUc0EwT39wvCFouoKetBFOJDvL7hQ9VP436JTONzYnyVPGC QoeYrfy3R/d+9X6wFsct8rfzcOzBlT0E/6Q5+fsqX9NZHJ5LMW2j4Q/109nKtdNi5TmL evHRnZcKNox+HSI2y2fiz0d+EsOuY0oHM0HPJzIfUF8hpMWyLUhKNNnI3sv5oOCQUSAQ l1GA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=fOT5wTblyMMRDyLhRHqU2xiTUzrEXAiR1+2kK1forYg=; b=HTcpcEPgPmz0lurQ3a0CBz2QIMjFd00yaX0pC8oW+umEYkUEFqBhSUL+JpyEfjInLh DdtjfLcBo5SOJT9+pcMubYWT2KHJWCTvwHt13ZjPf+LI4omM4ZQZMFfHf8k0hSDNFHT2 mJZ+hmAnHzigBpUa0IFweT8Y6KNjzG1vwvClLUXiukyBvQ8w88n1FJy+tob7qTB01VfT +VHeeKGxjbQqfkzUs4RkijQDQQRKjpOZD45ymRzelBKp0oNXbwSbcRUxd7Yfoddz364f taewxyXtCvsy5rjdHvdHzPPgeOswmDupYaHARtLskFIcXez1efb7GTUMNdDf/8nIhXJP Lw2A== X-Gm-Message-State: ALyK8tLUdHyRlaHx9688+9C3Up5NOdMNGtBPU4XygQH9j3jGH1iOwyoqPY0YlR/aFIgDyg== X-Received: by 10.98.46.70 with SMTP id u67mr35632751pfu.134.1467057193911; Mon, 27 Jun 2016 12:53:13 -0700 (PDT) Received: from [192.168.1.65] (76-220-46-95.lightspeed.sntcca.sbcglobal.net. [76.220.46.95]) by smtp.gmail.com with ESMTPSA id k74sm1115646pfk.78.2016.06.27.12.53.12 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 27 Jun 2016 12:53:13 -0700 (PDT) To: internals@lists.php.net References: <2c547cd2-408d-238b-2b5c-e6f7f24f0e7a@fleshgrinder.com> Message-ID: Date: Mon, 27 Jun 2016 12:53:11 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <2c547cd2-408d-238b-2b5c-e6f7f24f0e7a@fleshgrinder.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] [RFC DISCUSSION] Error Storage Behavior From: smalyshev@gmail.com (Stanislav Malyshev) Hi! > Currently error_get_last() always contains the last error that occurred, > however, this is actually not desired if the last error was an exception > that was caught. > > https://github.com/php/php-src/pull/1936 I think conditioning warnings on whether exception is caught or not is a very bad idea. However, having _either_ exception _or_ PHP error and not producing both (except in the case where uncaught exception becomes fatal error I guess) may be a good idea, but it needs careful checking of the implications. In general, old error mechanism and exceptions are not very good combination, and using them together may be troublesome. It's definitely not "just a bug fix" - it needs careful check of what exactly happens when. -- Stas Malyshev smalyshev@gmail.com