Remove PHP4 Legacy Code that may cause errors.