Fix Can't use method return value in write context for php 5.4.