[4.0] Fixed warnings when open_basedir directive set
Merge pull request #186 from SammyK/fix-for-open_basedir-directive-4.0

[4.0] Fixed warnings when open_basedir directive set