Fixes issue #552

It removes the strict error by passing the $location_values in a
temporary value instead by reference.