Fixed a bug where the arguments in an xpath php:functionString were reversed.
For example, if the xpath was "/foo[php:functionString('preg_match', '{$regex}', @bar)]",
preg_match was being called as preg_match($bar, $regex) instead of preg_match($regex, $bar).
Fixes #4116