Fix for call-time pass-by-reference fatal error in PHP 5.4. Fixes #4