[php:LocalFileSystem] check result of the file saveing

May be solved #891.
Merge branch '2.x' into 2.x_n