Bug #79180 [NEW]: not catchable
| From: | bugreports at gmail dot com | Date: | Mon, 27 Jan 2020 22:50:34 +0000 |
| Subject: | Bug #79180 [NEW]: not catchable | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-225175@lists.php.net to get a copy of this message | ||
From: bugreports at gmail dot com
Operating system:
PHP version: 7.4Git-2020-01-27 (Git)
Package: Scripting Engine problem
Bug Type: Bug
Bug description:not catchable
Description:
------------
PHP Fatal error: Type of test_typed_properties_extended::$int must be
int (as in class test_typed_properties)
why are such errors not catchable as nearly anything else like parse
errors in the recent history? not helpful when a testsuite designed to
collect all errors and warnings and present them at the end silently
stops while it would echo error_log normally as final action
try
{
require $testfile;
}
catch(Throwable $exception)
{
$this->trigger_error("custom/{$basename_testfile} - Exception -
{$this->format_exception((string)$exception)}");
}
--
Edit bug report at https://bugs.php.net/bug.php?id=79180&edit=1
--
Fix committed: https://bugs.php.net/fix.php?id=79180&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=79180&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=79180&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=79180&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=79180&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=79180&r=support
Expected behavior: https://bugs.php.net/fix.php?id=79180&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=79180&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=79180&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=79180&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=79180&r=phptooold
Daylight Savings: https://bugs.php.net/fix.php?id=79180&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=79180&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=79180&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=79180&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=79180&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=79180&r=mysqlcfg