mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Minor refactoring of main/main.c and TSRM (#8608)
This commit is contained in:
parent
9f06bb3bb6
commit
5ba6ecd523
7 changed files with 69 additions and 77 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue