I built a Drupal website with a custom module to integrate functionality from a company called MemberSuite. MemberSuite's PHP API is in a .phar file. I have little experience with .phar files, but everything works great on my local Ubuntu machine.
After I uploaded everything to a live server, I discovered strange characters at the top of every page. Traced the problem to the .phar file and found gibberish after the closing PHP tag:
This doesn't cause any issues on my local machine, but it outputs the following to the live server:
I think this has something to do with encoding, but I'm not an expert on the subject. I tried removing the characters from the end of the .phar file, but that results in a fatal error because of a hash/security check of the .phar file.
Is there a simple PHP configuration setting that would cause the .phar file to work on one server and not another?