Php 5.4 compatibility

Removed the ampersand for php 5.4 and greater. Creates a notice error and fills php error logs. Added compatibility for older versions of php (which shouldn't be used)