fix PHP5.4 throw (Only variables should be passed by reference) message