Fix PathFunctionMaker for php, fixes #37