ID: 17107 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: Open +Status: Assigned Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.2.0 -Assigned To: +Assigned To: derick New Comment:
I think I broke this, so I'll fix it too :) Derick Previous Comments: ------------------------------------------------------------------------ [2002-05-08 21:44:49] [EMAIL PROTECTED] $ php -v 4.2.0 $ php -q <?php exit(5); ?> $ echo $? 255 exit(n) always reports 255 (or -1) as exit status to the OS, regardless of the value it is passed as argument. The correct behavior according to the documentation would be to report n as exit status, or echo n if n is a string. The only workaround I could find is to use return from the global scope. Thank you :) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=17107&edit=1