Fixed PHP-585: GridFS incorrectly reports w=1 as w=0
Merged pull request #262