Fixed PHP-848: Invalid read in master
Merged Pull Request #474

* pull-request/474:
  Fixed PHP-848: Invalid read in master