Php 776 cleanup