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
Comment #1
jeremy commentedPlease try with the latest development snapshot -- there have been several fixes committed there since the release of -alpha5.
Comment #2
Ayman commentedI'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?
Comment #3
jeremy commentedThanks for tracking down the problem. I'll give this more thought and be sure to fix it before the next alpha release.
Comment #4
Ayman commentedThanks for your response. For reference, I asked my host to transfer me to a PHP 5 server, and now the module works fine!
Comment #5
yan commentedHaving the same problem running PHP 4.4.4
Comment #6
jeremy commentedFixed committed to the current development branch.
Comment #7
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.