Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:87224 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 20932 invoked from network); 21 Jul 2015 17:19:28 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Jul 2015 17:19:28 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmgx.michael@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmgx.michael@gmail.com; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.213.175 as permitted sender) X-PHP-List-Original-Sender: dmgx.michael@gmail.com X-Host-Fingerprint: 209.85.213.175 mail-ig0-f175.google.com Received: from [209.85.213.175] ([209.85.213.175:36888] helo=mail-ig0-f175.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/00-20623-F1F7EA55 for ; Tue, 21 Jul 2015 13:19:27 -0400 Received: by igbpg9 with SMTP id pg9so112743057igb.0 for ; Tue, 21 Jul 2015 10:19:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:message-id:subject:from:to:content-type; bh=nmcSRkgqVgLjy+Zk1eZVAvzG06negmDv+FQdJ6Wl83E=; b=yxGu1/3LFlktcBYu48uwFMzzTXz1JWOGZMF8fgtdh8EVopyFmgQVOzfELJIHZ8SPSg jPYUvN1Uy3pHM5mw3p7ictaMqHQCFGSC6xwRgcjx5Tz2QwtXoHhg87Rm9F3WOzJ3GPGG JDyb3Al7ap5NgcyftL+Z5+TEjSXmIxG7skwYWSUZ5U6ucobguOpFjJ2Zw1a8EPpLpFeS G38g1B4Rz+OX7QxSu/KYAtREPgj1dOqlRy0q8cRI7GS6zjLi/b9cdEcr4qng3vsaixyj iLtRMM180pinFokQrsA/knXbSOqMCw2GWba66aQgp4i/D7sFur74SqdSmROruBbSCcoy KLkw== MIME-Version: 1.0 X-Received: by 10.107.18.224 with SMTP id 93mr48687094ios.51.1437498688232; Tue, 21 Jul 2015 10:11:28 -0700 (PDT) Sender: dmgx.michael@gmail.com Received: by 10.36.26.20 with HTTP; Tue, 21 Jul 2015 10:11:28 -0700 (PDT) Date: Tue, 21 Jul 2015 13:11:28 -0400 X-Google-Sender-Auth: D03-ErdTJBk_KDxulHWBErdJ1zI Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary=001a113ecc56ad620d051b65be4f Subject: List of possible E_RECOVERABLE_ERRORs From: tendoaki@gmail.com (Michael Morris) --001a113ecc56ad620d051b65be4f Content-Type: text/plain; charset=UTF-8 Hi. I hate to ask an outright question on the list rather but I've been searching the last 5 hours for an answer to this and haven't found anything and it's a rather tight corner case. I'm working on a small package for PHP 5.x that uses set_error_handler() to convert E_RECOVERABLE_ERRORs to the appropriate PHP 7 exceptions. I know I can't emulate things exactly - my goal is to get things so that PHPUnit tests can use the same @expectedException annotation for these scenarios, simplifying unit test writing. As far as my research has found E_RECOVERABLE_ERROR has only ever been used for type hint failures. Are there any other errors that have this type, and if so to what PHP 7 exception should they be converted? --001a113ecc56ad620d051b65be4f--