Closed (fixed)
Project:
DruTeX
Version:
master
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
8 Nov 2007 at 21:58 UTC
Updated:
23 Jan 2008 at 12:41 UTC
Immediately after installing this module, I got the following message:
Warning: Call-time pass-by-reference has been deprecated; 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. in [path removed]drupal/sites/all/modules/drutex/drutex_remote.inc on line 288
This is line 288
if (ip_valid(&$_SERVER[$c])) {
Based on the advice for this similar issue, I removed the ampersand:
if (ip_valid($_SERVER[$c])) {
and the error no longer appears. Is this a good solution or does it break something that I haven't noticed yet?
Comments
Comment #1
vyvee commentedI suffer from the same problem too. I've examined the function ip_valid()... and as far as I can tell, it doesn't modify the parameter. So it should be safe to workaround so. Didn't notice that it breaks anything too.
Comment #2
steven jones commentedFixed in HEAD, thanks.
Comment #3
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.