]> granicus.if.org Git - php/commitdiff
Due to the way Zend handles exit() we cannot rely on the return code
authorEdin Kadribasic <edink@php.net>
Sun, 26 May 2002 12:43:20 +0000 (12:43 +0000)
committerEdin Kadribasic <edink@php.net>
Sun, 26 May 2002 12:43:20 +0000 (12:43 +0000)
of php_execute_script.

sapi/cli/php_cli.c

index 9d40b06e1658d2ea1f7f10b57ab73baa69786183..657c59a851c5849d1c545369f7d0c9aa34a11ab7 100644 (file)
@@ -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;