PHP before 5.5 don't support references to temporary values returned
from functions.

Signed-off-by: Gawain Lynch <gawain.lynch@gmail.com>