Closed (fixed)
Project:
Tweet Button
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
9 Nov 2010 at 16:23 UTC
Updated:
29 Jan 2011 at 13:40 UTC
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 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 commentedfixed in dev branch,
Thanks