Nucleus Core

Login!
Register as a new userLost password?

for Project:

This is the tracker for the Core of the Nucleus CMS-project (Nucleus CMS Website)

FS#88 — PHP5.1: "Fatal error: Only variables can be passed by reference " errors

Attached to Project— Nucleus Core
Opened by Wouter Demuynck (karma) - Tuesday, 02 August 2005, 05:57PM
Last edited by Wouter Demuynck (karma) - Sunday, 21 August 2005, 08:12PM
Bug
PHP version specific
CLOSED
Wouter Demuynck
All
High
High
3.21
3.22
Undecided
100%
PHP 5.1 requires that data which is passed by reference is always in a variable, resulting in this error when viewing Nucleus blogs:

"Fatal error: Only variables can be passed by reference in ...\BLOG.php on line 190"

See http://forum.nucleuscms.org/viewtopic.php?p=40971

This task depends upon

This task blocks these from closing
Closed by  Wouter Demuynck (karma)
Date:  Sunday, 21 August 2005, 08:12PM
Reason for closing:  Fixed
Additional comments about closing:  fix is in 3.22
Comment by Wouter Demuynck (karma) - Tuesday, 02 August 2005, 06:18PM

Fixes are in CVS.

I've been searching through the files to find out where references are used as function arguments. Most of them are used for passing objects (BLOG/MEMBER/...). For those passing normal variables (potentially large strings, in case of PARSER::parse), I've verified the calls to those functions.

I'm leaving this task open in case other occurrences pop up