use different approach for comparing arrays, due to php5.4 issue with array_diff
Merge branch 'master' of git://github.com/flack/openpsa