Deprecated PHP Coding

hailstorm - November 18, 2007 - 17:53
Project:Menu Translation
Version:5.x-1.x-dev
Component:Code
Category:bug report
Priority:minor
Assigned:svendecabooter
Status:closed
Description

Hi Sven,

I installed the menu translation module today and it works quite nice, except that I see this annoying PHP warning message on top.

"Warning: ... Call-time pass-by-reference has been deprecated ..." for the function calls in line 108 and line 121.

Line 108: _menutranslation_render_rows(&$rows, $menu, 0);

Line 121: _menutranslation_render_rows(&$rows, $menu, $depth);

I searched the internet for a solution and I think I found one. All you have to do is to delete the ampersands "&" from the function calls in line 108 and 121 and put one ampersand into your function prototype in line 114. Well, I did this change to the source and the module is still working.

Line 114: function _menutranslation_render_rows(&$rows, $menu = NULL, $depth = 0) {

With best regards

Mike
hailstorm

#1

svendecabooter - November 19, 2007 - 12:26
Assigned to:Anonymous» svendecabooter
Status:active (needs more info)» fixed

Thanks for reporting.
I changed this now.

#2

Anonymous - December 3, 2007 - 12:31
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.