php fixes
Merge pull request #7 from hannob/master

php fixes