Fix php5.4 "Only variables should be passed by reference"