make ada compliant to php 5.4