Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:93903 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 63236 invoked from network); 11 Jun 2016 15:52:50 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jun 2016 15:52:50 -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.84 cause and error) X-PHP-List-Original-Sender: php@fleshgrinder.com X-Host-Fingerprint: 77.244.243.84 mx103.easyname.com Received: from [77.244.243.84] ([77.244.243.84:51267] helo=mx202.easyname.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id D9/96-04630-1D33C575 for ; Sat, 11 Jun 2016 11:52:49 -0400 Received: from cable-81-173-133-15.netcologne.de ([81.173.133.15] 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 1bBlDI-0007Ml-1x for internals@lists.php.net; Sat, 11 Jun 2016 15:52:45 +0000 Reply-To: internals@lists.php.net To: php-internals Message-ID: <2c547cd2-408d-238b-2b5c-e6f7f24f0e7a@fleshgrinder.com> Date: Sat, 11 Jun 2016 17:48:49 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="1lLJM1BJ5F07tiMvMX9tSQA8X1FskIhiX" X-ACL-Warn: X-DNSBL-BARRACUDACENTRAL Subject: [RFC DISCUSSION] Error Storage Behavior From: php@fleshgrinder.com (Fleshgrinder) --1lLJM1BJ5F07tiMvMX9tSQA8X1FskIhiX Content-Type: multipart/mixed; boundary="RKubp4sc4IQbUmHOLtPODTMphKgmCP0as" From: Fleshgrinder Reply-To: internals@lists.php.net To: php-internals Message-ID: <2c547cd2-408d-238b-2b5c-e6f7f24f0e7a@fleshgrinder.com> Subject: [RFC DISCUSSION] Error Storage Behavior --RKubp4sc4IQbUmHOLtPODTMphKgmCP0as Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 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. 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: https://bugs.php.net/bug.php?id=3D54043 --=20 Richard "Fleshgrinder" Fussenegger --RKubp4sc4IQbUmHOLtPODTMphKgmCP0as-- --1lLJM1BJ5F07tiMvMX9tSQA8X1FskIhiX 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 iQIcBAEBCAAGBQJXXDO+AAoJEOKkKcqFPVVrAJQP/jDy6DUgxvNhLVTJdFzYjn/E Anw5KSVyERLplxDC1fa/2M5Ag0hz4yNOUM2Y0nePF6CYOEJXLwKylcJkZ5Tw1fFT CJccutoXjpQozQXqiDiA4viw+wVg7FzOgvEVlvxoYPxvH8gzW/ASvbA6Dwf/QkLX qjbwjWYHq8eEO/LbcGSJ/9HgKQVu8/AlGl62uQPphMYcRKJn1ORZiYGKVzBPYeRq VrQO/D/I5eanhIkBc4Z/erdHAOjSNm/zWiy8TF5mfEq5mX+d9PcyRzLQ/BclhEwv /qgp9lDJVv5zlcCYrml1zyvbptI9nEKd4gKmjpz1f/db5lmWVCAMpnWRgbNPeuvQ BvyUJsCY1tJzDziulpj5vSg100fhluJo/ku367XQx9OjuJcQxsELBz1J6du7MJ2l pME8adacQkhdudqi/mSyXPndr9yJ78V8YAcT3WDz5AiBRYaKr3+uM3+1OjRDW4lU GPBRhs1FmQDIt8QHu9HEdPDY1P3b+pbldRpbHU0Cp0Gqgo+HOrZgW1gTHgSvY17B aha0uy+MF32+PH6sbVPx3IESXlxnz5VpgOlRHehoME0J+fV0/Nm+zBZqJDiWkupX FCvT7t26KxBaGfZy4L8ZWR4/vhfkD10opSzgWLztq4JoD67dxK2hiwkd9AXAOB3q D2QwC1nAovH5+VJQIdvv =n80V -----END PGP SIGNATURE----- --1lLJM1BJ5F07tiMvMX9tSQA8X1FskIhiX--