List of possible E_RECOVERABLE_ERRORs

From: Date: Tue, 21 Jul 2015 17:11:28 +0000
Subject: List of possible E_RECOVERABLE_ERRORs
Groups: php.internals 
Request: Send a blank email to internals+get-87224@lists.php.net to get a copy of this message
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?

« previous php.internals (#87224) next »