php legacy support