From c5616d282f780f63d8ed67300b380a034965f617 Mon Sep 17 00:00:00 2001 From: Artem Nezvigin Date: Wed, 22 Feb 2012 12:43:42 -0800 Subject: [PATCH] php is now forced to display parse errors, even in production environments --- syntax_checkers/php.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/syntax_checkers/php.vim b/syntax_checkers/php.vim index 4f22f910..5a3e324f 100644 --- a/syntax_checkers/php.vim +++ b/syntax_checkers/php.vim @@ -38,7 +38,7 @@ function! SyntaxCheckers_php_GetLocList() let errors = [] - let makeprg = "php -l ".shellescape(expand('%')) + let makeprg = "php -l -d error_reporting=E_PARSE -d display_errors=1 ".shellescape(expand('%')) let errorformat='%-GNo syntax errors detected in%.%#,PHP Parse error: %#syntax %trror\, %m in %f on line %l,PHP Fatal %trror: %m in %f on line %l,%-GErrors parsing %.%#,%-G\s%#,Parse error: %#syntax %trror\, %m in %f on line %l,Fatal %trror: %m in %f on line %l' let errors = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })