]> granicus.if.org Git - php/commitdiff
- Make the errorcode 255. (Doing docs right away)
authorDerick Rethans <derick@php.net>
Fri, 15 Feb 2002 09:06:45 +0000 (09:06 +0000)
committerDerick Rethans <derick@php.net>
Fri, 15 Feb 2002 09:06:45 +0000 (09:06 +0000)
sapi/cgi/cgi_main.c
sapi/cli/php_cli.c

index 41839cb4ad487d94284571fb71e47ae421203177..7ec927bcabd1fa5b59baff16bf388914eb00cf0a 100644 (file)
@@ -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);
index cf6ffdcd7089a93b1a01da7be766eecc23a262d2..4cc228a7b4c894b0c6e29aaeaab046cf53ea1a65 100644 (file)
@@ -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);