Hi Marc,
This isn't a PHP bug, it's a minor coding bug in OJS -- but recent changes to the way PHP handles references made this visible where before it was just ignored. (Different versions of PHP now complain in different situations without a lot of consistency.)
There's a scattering of these bugs through OJS, and fixing them is trivial. For example, instead of:
- Code: Select all
function &myFunc() {
return null;
}
you now have to write:
- Code: Select all
function &myFunc() {
$nullVariable = null;
return $nullVariable;
}
Basically, some versions of PHP are now stricter about references: if your function definition says you'll be returning a variable reference, you absolutely must return one.
Our next release of OJS, which is due at the end of the month, has had a number of these issues corrected.
Regards,
Alec Smecher
Open Journal Systems Team