Bug #60978 [Opn]: exit code incorrect

From: Date: Sat, 04 Feb 2012 17:56:08 +0000
Subject: Bug #60978 [Opn]: exit code incorrect
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-167169@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=60978&edit=1 ID: 60978 Updated by: thekid@php.net Reported by: thekid@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] thekid@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

« previous php.bugs (#167169) next »