I have this in my vimrc, and no matter what order I put the two aus in, PHP syntax completion always seems to be overridden by the the default version in /usr/share/vim/....
if exists("+omnifunc")
autocmd Filetype php
\ setlocal omnifunc=phpcomplete#CompletePHP
autocmd Filetype *
\ if &omnifunc == "" |
\ setlocal omnifunc=syntaxcomplete#Complete |
\ endif
endif
The only thing that seems to allow your plugin to work is to comment out the default omnicomplete.