Bug #80976 [NEW]: eval() with error code causes php to crash instead of throwing an exception

From: Date: Thu, 22 Apr 2021 09:38:12 +0000
Subject: Bug #80976 [NEW]: eval() with error code causes php to crash instead of throwing an exception
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-233549@lists.php.net to get a copy of this message
From:             vicreal at yandex dot ru
Operating system: Debian 10.5
PHP version:      8.0.3
Package:          *General Issues
Bug Type:         Bug
Bug description:eval() with error code causes php to crash instead of throwing an exception

Description:
------------
Debian 10.5 + php-fpm 8.0.3
eval() with error code causes php to crash instead of throwing an
exception

Test script:
---------------
eval('ttt();');  // Connection reset by peer => 502 Bad Gateway
echo 'OK';
exit(0);

Expected result:
----------------
Throwing an exception with message "Call to undefined function ttt()".

Actual result:
--------------
Connection reset by peer => 502 Bad Gateway.

-- 
Edit bug report at https://bugs.php.net/bug.php?id=80976&edit=1
-- 
Fix committed:                    https://bugs.php.net/fix.php?id=80976&r=fixed
Fixed in release:                 https://bugs.php.net/fix.php?id=80976&r=alreadyfixed
Need backtrace:                   https://bugs.php.net/fix.php?id=80976&r=needtrace
Need Reproduce Script:            https://bugs.php.net/fix.php?id=80976&r=needscript
Try newer version:                https://bugs.php.net/fix.php?id=80976&r=oldversion
Not developer issue:              https://bugs.php.net/fix.php?id=80976&r=support
Expected behavior:                https://bugs.php.net/fix.php?id=80976&r=notwrong
Not enough info:                  https://bugs.php.net/fix.php?id=80976&r=notenoughinfo
Submitted twice:                  https://bugs.php.net/fix.php?id=80976&r=submittedtwice
register_globals:                 https://bugs.php.net/fix.php?id=80976&r=globals
PHP version support discontinued: https://bugs.php.net/fix.php?id=80976&r=phptooold
Daylight Savings:                 https://bugs.php.net/fix.php?id=80976&r=dst
IIS Stability:                    https://bugs.php.net/fix.php?id=80976&r=isapi
Install GNU Sed:                  https://bugs.php.net/fix.php?id=80976&r=gnused
Floating point limitations:       https://bugs.php.net/fix.php?id=80976&r=float
No Zend Extensions:               https://bugs.php.net/fix.php?id=80976&r=nozend
MySQL Configuration Error:        https://bugs.php.net/fix.php?id=80976&r=mysqlcfg


Thread (5 messages)

« previous php.bugs (#233549) next »