Download & Extend

Compatibility with PHp5.2 version - Call By reference in question.install file

Project:Question
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:critical
Assigned:tanoshimi
Status:closed (fixed)

Issue Summary

Just tested this dev version of module and got:-

Warning: Call-time pass-by-reference has been deprecated in E:\mysite\indiapoly\sites\all\modules\question\question.install on line 38

Warning: Call-time pass-by-reference has been deprecated in E:\mysite\indiapoly\sites\all\modules\question\question.install on line 39

Warning: Call-time pass-by-reference has been deprecated in E:\mysite\indiapoly\sites\all\modules\question\question.install on line 45

Found:-Line 45 question.install

db_drop_primary_key(&$ret, 'question_queue');

Should be:-

db_drop_primary_key($ret, 'question_queue');

And found:-Line 38,39 question.install

db_add_primary_key(&$ret, 'question_node', array('nid'));
db_add_primary_key(&$ret, 'question_queue', array('qid'));

Should be:-

db_add_primary_key($ret, 'question_node', array('nid'));
  db_add_primary_key($ret, 'question_queue', array('qid'));

Comments

#1

Assigned to:inders» tanoshimi

Attached in patch format.

AttachmentSize
question_471324_passbyref.patch 873 bytes

#2

Status:needs review» fixed

Committed to 6.x-1.x-dev branch.

#3

Status:fixed» closed (fixed)

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

nobody click here