Fix call-time-pass-by-reference that throws fatal errors in PHP >= 5.4