]> granicus.if.org Git - php/commitdiff
Set the exit status from the return value of php_execute_script()
authorSascha Schumann <sas@php.net>
Wed, 22 Nov 2000 04:24:04 +0000 (04:24 +0000)
committerSascha Schumann <sas@php.net>
Wed, 22 Nov 2000 04:24:04 +0000 (04:24 +0000)
sapi/cgi/cgi_main.c

index d4a743fd2b9a7e5a27970661d52d5864cf09d8f1..76232849c686d862d1ad8b4c1773957cc3a81fd4 100644 (file)
@@ -742,7 +742,7 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
        file_handle.free_filename = 0;
        switch (behavior) {
                case PHP_MODE_STANDARD:
-                       php_execute_script(&file_handle CLS_CC ELS_CC PLS_CC);
+                       exit_status = php_execute_script(&file_handle CLS_CC ELS_CC PLS_CC);
                        break;
                case PHP_MODE_LINT:
                        exit_status = php_lint_script(&file_handle CLS_CC ELS_CC PLS_CC);