Edit report at https://bugs.php.net/bug.php?id=60978&edit=1
ID: 60978 Updated by: the...@php.net Reported by: the...@php.net Summary: exit code incorrect Status: Open Type: Bug Package: Scripting Engine problem Operating System: Windows PHP Version: 5.4.0RC7 Block user comment: N Private report: N New Comment: Same goes for die(). Previous Comments: ------------------------------------------------------------------------ [2012-02-04 17:54:03] the...@php.net Description: ------------ Calling exit with an int arg will not lead to PHP exiting with this exitcode. Test script: --------------- $ php -r 'exit(2);' ; echo $? Expected result: ---------------- 2 Actual result: -------------- 254 ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=60978&edit=1