fix php5.4 problem of return value use