I've just tried installing the new alpha5 version. I subsequently get the following message:

Parse error: syntax error, unexpected '=', expecting ')' in /home/mcq14816/public_html/drupal/sites/all/modules/spam/modules/spam_comment.inc on line 48

I'm running Drupal 5.2. PHP version 4.4.6.

Comments

jeremy’s picture

Status: Active » Postponed (maintainer needs more info)

Please try with the latest development snapshot -- there have been several fixes committed there since the release of -alpha5.

Ayman’s picture

I'm using the latest development snapshot and having the same problem.

PHP 4.4.6 does not support default values for reference arguments, which is causing a parse error at spam_comment.inc:42 (arg2)
function comment_spamapi($op, $arg1 = NULL, &$arg2 = NULL, $arg3 = NULL)

Is it possible to either drop the default value or the reference operator?

jeremy’s picture

Assigned: Unassigned » jeremy
Status: Postponed (maintainer needs more info) » Active

Thanks for tracking down the problem. I'll give this more thought and be sure to fix it before the next alpha release.

Ayman’s picture

Thanks for your response. For reference, I asked my host to transfer me to a PHP 5 server, and now the module works fine!

yan’s picture

Having the same problem running PHP 4.4.4

jeremy’s picture

Status: Active » Fixed

Fixed committed to the current development branch.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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