diff options
author | Edin Kadribasic <edink@php.net> | 2002-05-26 12:43:20 +0000 |
---|---|---|
committer | Edin Kadribasic <edink@php.net> | 2002-05-26 12:43:20 +0000 |
commit | af5663fa501942534705eb1de6e007e83cdf474a (patch) | |
tree | 6cf4d3e1ab69125f675f4b4144ae8699ed9875c6 | |
parent | 190719ab97689a772e44328ba7c34726bffa8637 (diff) | |
download | php-git-af5663fa501942534705eb1de6e007e83cdf474a.tar.gz |
Due to the way Zend handles exit() we cannot rely on the return code
of php_execute_script.
-rw-r--r-- | sapi/cli/php_cli.c | 7 |
1 files changed, 2 insertions, 5 deletions
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; |