Change class name, support PHP >= 5