Adjust Tools for php 5 functions