Fixed for pre phpv 5.4 servers