PHP fixes

here  is an example of a pull request