passing object by reference not needed from php>=5.3.0. It thrown a PHP ...

...Strict standards error