Bug #79948 [NEW]: Exit in auto-prepended file does not abort PHP execution

From: Date: Sun, 09 Aug 2020 23:21:12 +0000
Subject: Bug #79948 [NEW]: Exit in auto-prepended file does not abort PHP execution
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-228472@lists.php.net to get a copy of this message
From: weirdan at gmail dot com Operating system: Debian/sid, MacOS X PHP version: 8.0.0beta1 Package: *General Issues Bug Type: Bug Bug description:Exit in auto-prepended file does not abort PHP execution Description: ------------ When exit() is used in a file pointed to by auto_prepend_file directive it does not abort the execution of PHP in PHP 8. It used to abort execution in PHP 7 (last tested with PHP 7.4.5). Test script: --------------- // prepend.php <?php var_dump('exiting'); exit(22); var_dump('after exit'); ?> // main.php <?php var_dump('executing'); // run as php -dauto_prepend_file=prepend.php main.php Expected result: ---------------- string(7) "exiting" Actual result: -------------- string(7) "exiting" string(9) "executing" -- Edit bug report at https://bugs.php.net/bug.php?id=79948&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=79948&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=79948&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=79948&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=79948&r=needscript Try newer version: https://bugs.php.net/fix.php?id=79948&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=79948&r=support Expected behavior: https://bugs.php.net/fix.php?id=79948&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=79948&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=79948&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=79948&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=79948&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=79948&r=dst IIS Stability: https://bugs.php.net/fix.php?id=79948&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=79948&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=79948&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=79948&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=79948&r=mysqlcfg

« previous php.bugs (#228472) next »