Needs review
Project:
Http Headers
Version:
6.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Jan 2009 at 20:21 UTC
Updated:
14 Oct 2009 at 02:25 UTC
Hi,
I'm using Drupal 5.14, on a LAMP server with PHP 5.2.5, and MySQL database 5.0.26, and just after installing the module I get this warning from PHP:
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 [root]/sites/all/modules/httpHeaders/http_headers.module on line 91
Thank you.
Comments
Comment #1
fizzbin commented/bump
Also applies to 6.x development branch
Comment #2
not_Dries_Buytaert commentedRecieved this error as well with httpHeaders-6.x-1.x-dev.tar.gz:
"Warning: Call-time pass-by-reference has been deprecated in {root}/sites/all/modules/httpHeaders/http_headers.module on line 98"
Comment #3
not_Dries_Buytaert commentedThx to this post, I found a solution which I tested successfully:
Change line 98 of file 'http_headers.module' of httpHeaders-6.x-1.x-dev.tar.gz:
from
case('#node_last_comment'):$comment = comment_nodeapi(&$node, $op, $arg = 0);to
case('#node_last_comment'):$comment = comment_nodeapi($node, $op, $arg = 0);Though, this bug still remains: http://drupal.org/node/361183