Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:94257 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 78229 invoked from network); 26 Jun 2016 07:09:30 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 26 Jun 2016 07:09:30 -0000 Authentication-Results: pb1.pair.com smtp.mail=php@fleshgrinder.com; spf=permerror; sender-id=unknown Authentication-Results: pb1.pair.com header.from=php@fleshgrinder.com; sender-id=unknown Received-SPF: error (pb1.pair.com: domain fleshgrinder.com from 77.244.243.86 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.86 mx105.easyname.com Received: from [77.244.243.86] ([77.244.243.86:56656] helo=mx207.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 96/F9-00500-9AF7F675 for ; Sun, 26 Jun 2016 03:09:29 -0400 Received: from cable-81-173-134-219.netcologne.de ([81.173.134.219] helo=[192.168.178.20]) by mx.easyname.com with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1bH4Br-0000Hw-8p for internals@lists.php.net; Sun, 26 Jun 2016 07:09:11 +0000 Reply-To: internals@lists.php.net References: <2c547cd2-408d-238b-2b5c-e6f7f24f0e7a@fleshgrinder.com> To: php-internals Message-ID: <151b8d23-39a8-376f-fefa-e48183826432@fleshgrinder.com> Date: Sun, 26 Jun 2016 09:08:59 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; 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: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="d8LOsFnPhjKS8WBJABDJ7XQiXLgLajIJ9" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: Re: [PHP-DEV] [RFC DISCUSSION] Error Storage Behavior From: php@fleshgrinder.com (Fleshgrinder) --d8LOsFnPhjKS8WBJABDJ7XQiXLgLajIJ9 Content-Type: multipart/mixed; boundary="QxwH4BqUbXpwjjJUWti8f3PS6pquXRB3T" From: Fleshgrinder Reply-To: internals@lists.php.net To: php-internals Message-ID: <151b8d23-39a8-376f-fefa-e48183826432@fleshgrinder.com> Subject: Re: [PHP-DEV] [RFC DISCUSSION] Error Storage Behavior References: <2c547cd2-408d-238b-2b5c-e6f7f24f0e7a@fleshgrinder.com> In-Reply-To: <2c547cd2-408d-238b-2b5c-e6f7f24f0e7a@fleshgrinder.com> --QxwH4BqUbXpwjjJUWti8f3PS6pquXRB3T Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 6/11/2016 5:48 PM, Fleshgrinder wrote: > Currently error_get_last() always contains the last error that occurred= , > however, this is actually not desired if the last error was an exceptio= n > that was caught. >=20 > https://github.com/php/php-src/pull/1936 >=20 > With the above change only uncaught exceptions are retrievable via > error_get_last(). This is consistent with the behavior of custom error > handlers that successfully handle the error; they are not retrievable > via error_get_last(0. >=20 > Note that this change is a breaking change since users might rely on > exactly this behavior. However, it is undocumented and there is a bug > report for it too: >=20 > https://bugs.php.net/bug.php?id=3D54043 >=20 Any feedback here? Should we treat it as a simple bug fix? --=20 Richard "Fleshgrinder" Fussenegger --QxwH4BqUbXpwjjJUWti8f3PS6pquXRB3T-- --d8LOsFnPhjKS8WBJABDJ7XQiXLgLajIJ9 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJXb3+kAAoJEOKkKcqFPVVrXEgP/1PjwfbwvCgYUelxsRdIU/R1 eC644w33fDSTTWCtKZa5TeEt2vQfm0KTDoAxKKh27EFBeC6K8TqumgWWfXD2jBrE FZNPqXLfBlve2ogCypfE3thNl2pa1hUmlbHvAsMJM8VVIUhLzFXpkB11RwigQ5mv ZhjkL64Zas2V8Heyr70+sJ+aDR4Uhd73o1FWNYFTdmywuNXyusHPVRPrVpaOMRmh ikZD9+ZaIGEhkf7kcf+HxnnAyUOxKf/fsyNhnSyo2mjYN5DhlyRpIoyJbMp4fhea 0GMJrbYhQhrKLXsVj+KE+FrOumwkM79Iyrmi3dVYp1yKxDcYtokimeFezBKZ8dc5 7Z3NlPcTaLVufCHRbHovBHUbrBGF8Ra6t+F1J+45vXColIo9zLczDjnBiBOZMf+b mVb2Tsywc1SjXDtrV12+fCtJE8ZjtY7Cm6JCn6VSa1OxuHIkOdofJegnfeQGSDiW wAxYVu9iGDyMgqe7F1IkvKLw/6VXvRNeow/C4lwKm6FQ4VIRJB4c3gkWekT9TNre IJZaSt7mQe+yhrXKeXaFCxznfQjGMSOtQcwmtxDGrbNIzUL3g0L2UsuzqS2sUEIJ ljxFwGFv4lIVa/LE8fB5G3yULS3lh6l+WrDh7GnxpTNBNSGpDfvdw7paNtHB+nAW oyaH8AOxab3l9bijYp2A =jEnF -----END PGP SIGNATURE----- --d8LOsFnPhjKS8WBJABDJ7XQiXLgLajIJ9--