fatal error when running w/ php 5.4

In php 5.4 call-time pass-by-reference was deprecated, causing a fatal error when running camera.php
http://php.net/manual/en/language.references.pass.php