Fixed PHP-585: GridFS incorrectly reports w=1 as w=0