Fixed PHP-848: Invalid read in master

This only happens in master.