After enabling location_views in Drupal 5.0, I get the following error:

Warning: Call-time pass-by-reference has been deprecated - argument passed by value; If you would like to pass it by reference, modify the declaration of [runtime function name](). If you would like to enable call-time pass-by-reference, you can set allow_call_time_pass_reference to true in your INI file. However, future versions may not support this any longer.

in /.../drupal-5.0/modules/location/contrib/location_views/location_views.module on line 710
(also lines 759, 793, 955)

The problem seems to be that php5 doesn't like (or is thinking about not liking) the lines that look like:

 function location_views_handler_arg_user_city($op, &$query, $argtype, $arg = '') {
  return location_views_handler_arg_city($op, &$query, $argtype, $arg, 'user_location');
} 

and

 function location_views_handler_arg_user_province($op, &$query, $argtype, $arg = '') {
  return location_views_handler_arg_province($op, &$query, $argtype, $arg, 'user_location');
}

etc.

Comments

karens’s picture

Status: Active » Fixed

Fixed in latest commit.

Anonymous’s picture

Status: Fixed » Closed (fixed)