Fixes function name matching regex.

Using the [suggested regular expression on the documentation][1] to
fix matching function names with _ (underscore) -like the magic methods.

[1]: http://www.php.net/manual/en/functions.user-defined.php