PHP wrapper bug fixes (inputType and fileRoot)