We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a13252b commit 8332ab4Copy full SHA for 8332ab4
sapi/cgi/cgi_main.c
@@ -748,7 +748,13 @@ any .htaccess restrictions anywhere on your site you can leave doc_root undefine
748
exit_status = php_execute_script(&file_handle CLS_CC ELS_CC PLS_CC);
749
break;
750
case PHP_MODE_LINT:
751
+ PG(during_request_startup) = 0;
752
exit_status = php_lint_script(&file_handle CLS_CC ELS_CC PLS_CC);
753
+ if (exit_status==SUCCESS) {
754
+ zend_printf("No syntax errors detected in %s\n", file_handle.filename);
755
+ } else {
756
+ zend_printf("Errors parsing %s\n", file_handle.filename);
757
+ }
758
759
case PHP_MODE_HIGHLIGHT:
760
{
0 commit comments