Edit report at https://bugs.php.net/bug.php?id=65240&edit=1
ID: 65240 Updated by: larue...@php.net Reported by: rkelley at transperfect dot com Summary: Return code not updating exit status -Status: Open +Status: Not a bug Type: Bug Package: Scripting Engine problem Operating System: Linux PHP Version: 5.4.17 Block user comment: N Private report: N New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php php -r 'exit(0);' ; echo $? Previous Comments: ------------------------------------------------------------------------ [2013-07-10 20:14:54] rkelley at transperfect dot com Description: ------------ When the top level function does a return, that code is not reflected in the exit status. Test script: --------------- php -r 'return(1);' ; echo $? Expected result: ---------------- 1 Actual result: -------------- 0 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=65240&edit=1