From af5663fa501942534705eb1de6e007e83cdf474a Mon Sep 17 00:00:00 2001 From: Edin Kadribasic Date: Sun, 26 May 2002 12:43:20 +0000 Subject: Due to the way Zend handles exit() we cannot rely on the return code of php_execute_script. --- sapi/cli/php_cli.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'sapi/cli/php_cli.c') diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index 9d40b06e16..657c59a851 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -671,11 +671,8 @@ int main(int argc, char *argv[]) if (strcmp(file_handle.filename, "-")) { cli_register_file_handles(TSRMLS_C); } - if (php_execute_script(&file_handle TSRMLS_CC)) { - exit_status = EG(exit_status); - } else { - exit_status = 255; - } + php_execute_script(&file_handle TSRMLS_CC); + exit_status = EG(exit_status); break; case PHP_MODE_LINT: PG(during_request_startup) = 0; -- cgit v1.2.1