|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-09-04 02:31 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Nov 16 22:00:01 2025 UTC |
The command line interface CLI of PHP could NOT return 0 (zero) exit status from the script. I look through the source and found folowing code (in sapi/cli/php_cli.c:586: switch (behavior) { case PHP_MODE_STANDARD: if (php_execute_script(&file_handle TSRMLS_CC)) { exit_status = EG(exit_status); } else { exit_status = 255; } break; As I see, there is NO way to return 0 (normal) exit status.