Minor refactoring of main/main.c and TSRM (#8608)

This commit is contained in:
George Peter Banyard 2022-05-24 08:34:55 +01:00 committed by GitHub
parent 9f06bb3bb6
commit 5ba6ecd523
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 69 additions and 77 deletions

View file

@ -966,11 +966,12 @@ do_repeat:
}
break;
case PHP_MODE_LINT:
EG(exit_status) = php_lint_script(&file_handle);
if (EG(exit_status) == SUCCESS) {
if (php_lint_script(&file_handle) == SUCCESS) {
zend_printf("No syntax errors detected in %s\n", php_self);
EG(exit_status) = 0;
} else {
zend_printf("Errors parsing %s\n", php_self);
EG(exit_status) = 255;
}
break;
case PHP_MODE_STRIP: