|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2020-08-10 10:55 UTC] nikic@php.net
[2020-08-10 10:55 UTC] nikic@php.net
-Status: Open
+Status: Closed
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Mon Oct 27 04:00:02 2025 UTC |
Description: ------------ When a fatal error is throwed in a callback used with register_shutdown_function(), php exit code is 0 instead of 255. There is no problem with PHP < 5.4 Test script: --------------- <?php register_shutdown_function(function() { require 'path/to/an/unknown/file'; } ); Expected result: ---------------- # php testScript.php # echo $? 255 Actual result: -------------- # php testScript.php # echo $? 0