up to 3.1.0, php 5.5 support