#19224 [NEW]: no way to return 0 exit status in CLI

From: Date: Wed, 04 Sep 2002 07:22:56 +0000
Subject: #19224 [NEW]: no way to return 0 exit status in CLI
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-18389@lists.php.net to get a copy of this message
From: tdv@edisoft.ru Operating system: PHP version: 4.2.2 PHP Bug Type: Feature/Change Request Bug description: no way to return 0 exit status in CLI 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. -- Edit bug report at http://bugs.php.net/?id=19224&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=19224&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=19224&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=19224&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=19224&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=19224&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=19224&r=support Expected behavior: http://bugs.php.net/fix.php?id=19224&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=19224&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=19224&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=19224&r=globals

« previous php.bugs (#18389) next »