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

fizzbin - June 29, 2009 - 22:45

/bump

Also applies to 6.x development branch

#2

not_Dries_Buytaert - October 14, 2009 - 01:04
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"

#3

not_Dries_Buytaert - October 14, 2009 - 02:25
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

 
 

Drupal is a registered trademark of Dries Buytaert.