I believe I've figured out the settings in PHP. The pull request has been submitted. I don't know how long this will take to get accepted. If anyone wants to help test, I think you can get the code at that link, but if not, let me know.
In addition to the changes I listed in post #77 above, I...