I got this error: Parse error: syntax error, unexpected ')' ... on line 211 in a drupal site running in php 4 at the moment I enabled the module.
I changed it from:
function filefield_field($op, &$node, $field, &$items = array()) {
to
function filefield_field($op, &$node, $field, &$items) {
and it works ok now.
Is there any problem/risk in doing this? since the module ask if $items is an array anyway in line 216, but keeps treating as an array even if that check fails.
So far i haven't got any problems, but anyway I'm moving to php5 soon and I think I'll return it to how it was before.
Comments
Comment #1
jpetso commentedDupe of #221730: PHP 4 parse error in filefield_meta.
In short, sorry, PHP 4 is not supported for 5.x-2.3 and later, and yeah, this is even stated on the project page.