Fix call-time pass-by-reference

To support PHP >= 5.4, call-time pass-by-reference must be avoided.
See http://fr2.php.net/manual/en/language.references.pass.php
Merge pull request #87 from julienmalik/patch-1

Fix call-time pass-by-reference