When this module is enabled, the following warning is thrown whenever a page is loaded:
PHP Warning: Call-time pass-by-reference has been deprecated in /mysite/modules/signup_status/modules/signup_status_limit/signup_status_limit.settings.inc on line 24
Similar warnings has been reported in other Drupal modules and it seems the consensus is to fix the issue by removing pass-by-reference calls (in this case, changing "function signup_status_limit_alter_signup_node_settings_form(&$form)" to "function signup_status_limit_alter_signup_node_settings_form($form)").
I want to ascertain that this is safe to do in this module before I go ahead. Is it?
Comment | File | Size | Author |
---|---|---|---|
#3 | 784536_pass_by_reference_on_receiver.patch | 917 bytes | greggles |
Comments
Comment #1
froboyI did this and haven't seen any problems with it through some basic testing.
Comment #2
franksweb CreditAttribution: franksweb commentedSolution: http://drupal.org/node/486562
Comment #3
gregglesAttached patch should fix this. It's just a warning, not a problem, but we should eliminate as many of these as we can.
Comment #4
AlsTested patch #3 in Drupal 6.17 + Signup Status 6.x-1.x-dev (11 Jul, latest one): no more warnings.