vim-scripts/phpfolding.vim — pull request #6 by blu3gui7ar (2014-05-15 11:03:53+00:00)
Title: The 'function' pattern will match function calls like 'register_shutdown_function'

Refine the pattern to '\(^\|\s\)function\s' to avoid these errors.