c syntax_checker: fix php extension

This commit is contained in:
kongo2002 2010-08-13 06:00:17 +08:00 committed by Martin Grenfell
parent 0570e0605d
commit e45183a71d

View File

@ -180,7 +180,8 @@ endfunction
function! s:CheckPhp()
if executable('php-config')
if !exists('s:php_flags')
let s:php_flags = ' ' . system('php-config --includes')
let s:php_flags = system('php-config --includes')
let s:php_flags = ' ' . substitute(s:php_flags, "\n", '', '')
endif
return s:php_flags
endif