compatiblei to php5.4 more

I'm sorry. Fix #27 was leaking.