compatible php5.4

fixed #27