Compatility for old php