Fixed a couple potential issues with publishing to php
Merge pull request #8 from markguinn/patch-phppublish

Fixed a couple potential issues with publishing to PHP