Fix for PHP

Same workaround needed as flash target.
Merge pull request #35 from jasononeil/patch-2

Fix for PHP