Just a side-note, but you would have access to the messages that go into php_errors.log, inside suitecrm.log, by just turning on an option…
… If this PR had been merged, instead of sitting there idle for 4 years now: