PHP retro-compatibility