Resolve pass-by-reference PHP5.4 issue

Resolve pass-by-reference PHP5.4 issue