Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
If you have "allow_call_time_pass_reference = on" in your PHP settings using PHP 5.2+ you get the following error:
Warning: Call-time pass-by-reference has been deprecated in /[my webroot]/sites/all/modules/tweetbutton/tweetbutton_views_field_handlers.inc on line 24
Pretty sure this will create a warning in PHP 5.3 as calling by reference is now only done in the function definition: http://php.net/manual/en/language.references.pass.php
Attached is a patch.
Comment | File | Size | Author |
---|---|---|---|
tweetbutton_reference_error.patch | 728 bytes | acouch | |
Comments
Comment #1
dddave CreditAttribution: dddave commentedUnless there is a better way to solve this (cannot judge) this patch works fine. If someone else confirms this the person can set the status to RTBC.
Comment #2
GiorgosKworks as advertised
trivial change
Comment #3
chia CreditAttribution: chia commentedfixed in dev branch,
Thanks