Avoid warning: is_writable(): open_basedir restriction in effect.
merged branch petajaros/patch-1 (PR #270)

This PR was merged into the master branch.

Commits
-------

34358cd Avoid warning: is_writable(): open_basedir restriction in effect.

Discussion
----------

Avoid warning: "is_writable(): open_basedir restriction in effect."

When the parameter provided for is_writable function is a path restricted by setting open_basedir configuration (http://php.net/manual/en/ini.core.php#ini.open-basedir), it throws warning instead of simply returning false. @ operator suppress the warning. Warning unnecessarily breaks the flow of the program - returned value 'false' is sufficient.

---------------------------------------------------------------------------

by fabpot at 2013-01-02T10:03:53Z

Can you add a comment above to indicate why we need to use the `@` operator?

---------------------------------------------------------------------------

by petajaros at 2013-01-02T14:19:27Z

I'm sorry. I have already written short description.

---------------------------------------------------------------------------

by fabpot at 2013-01-02T15:38:14Z

I mean, add a comment in the PHP file.
added a comment