php strict problem in xml class