From b8a5daf59cb5a54d217978b6a3ba0de932af6ae8 Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Fri, 15 Feb 2002 09:06:45 +0000 Subject: [PATCH] - Make the errorcode 255. (Doing docs right away) --- sapi/cgi/cgi_main.c | 4 ++-- sapi/cli/php_cli.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 41839cb4ad..7ec927bcab 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -759,7 +759,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine if (php_execute_script(&file_handle TSRMLS_CC)) { exit_status = EG(exit_status); } else { - exit_status = -1; + exit_status = 255; } break; case PHP_MODE_LINT: @@ -814,7 +814,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine } } zend_catch { - exit_status = -1; + exit_status = 255; } zend_end_try(); php_module_shutdown(TSRMLS_C); diff --git a/sapi/cli/php_cli.c b/sapi/cli/php_cli.c index cf6ffdcd70..4cc228a7b4 100644 --- a/sapi/cli/php_cli.c +++ b/sapi/cli/php_cli.c @@ -555,7 +555,7 @@ int main(int argc, char *argv[]) if (php_execute_script(&file_handle TSRMLS_CC)) { exit_status = EG(exit_status); } else { - exit_status = -1; + exit_status = 255; } break; case PHP_MODE_LINT: @@ -605,7 +605,7 @@ int main(int argc, char *argv[]) } zend_catch { - exit_status = -1; + exit_status = 255; } zend_end_try(); php_module_shutdown(TSRMLS_C); -- 2.50.1