|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-08-10 08:28 UTC] nikic@php.net
-Assigned To:
+Assigned To: nikic
[2020-08-10 09:15 UTC] nikic@php.net
[2020-08-10 09:15 UTC] nikic@php.net
-Status: Assigned
+Status: Closed
[2020-08-10 10:09 UTC] weirdan at gmail dot com
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 02 15:00:01 2025 UTC |
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"