Fix "Call-time pass-by-reference has been removed" error introduced by PHP 5.4

This fix will work for all PHP version.