Warning: Call-time pass-by-reference has been deprecated
fxarte - January 19, 2009 - 20:21
| Project: | Http Headers |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | critical |
| Assigned: | Unassigned |
| Status: | needs review |
Jump to:
Description
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.

#1
/bump
Also applies to 6.x development branch
#2
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"
#3
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