Checking if PHP safe_mode is enabled. Fixes #173.
Fixes #173.
Merge pull request #1 from symbiose/master

合并上游补丁