PHP5.3 support