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

fizzbin’s picture

/bump

Also applies to 6.x development branch

not_Dries_Buytaert’s picture

Version: 5.x-1.0 » 6.x-1.x-dev
Priority: Normal » Critical

Recieved 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"

not_Dries_Buytaert’s picture

Title: Warning: Call-time pass-by-reference has been deprecated; » Warning: Call-time pass-by-reference has been deprecated
Status: Active » Needs review

Thx 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