Issue #2771321 by adriancid: Strict warning : Only variables should be passed by reference in array_pop()