v.1.2.0: support php 5.4