I have this error when activating the module :

Parse error: syntax error, unexpected '=', expecting ')' in /path/modules/private_upload/private_upload.module on line 86

CommentFileSizeAuthor
#2 private_upload.module.patch558 bytesMarc Angles
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

starbow’s picture

Status: Active » Postponed (maintainer needs more info)

I suspect that means that you are using PHP4, and that line is PHP5 only.

The line in question is:

function private_upload_requirements($phase, &$status=array()) {

Marc Angles’s picture

FileSize
558 bytes

ok,

anarcat (http://drupal.org/user/1274) helped me and now I have a little patch to use this module with php4

anyways thanks for the good job

starbow’s picture

Hmm, this issue with that patch is that it won't return the status array, which means you won't see the results. Let me know if this works for you:

function private_upload_requirements($phase, &$status = NULL) {

starbow’s picture

Status: Postponed (maintainer needs more info) » Fixed

Ok, looks like PHP4 and PHP5.2.4 don't like setting references to default values. I have changed it to:
function private_upload_requirements($phase, &$status) {

which throws a couple warnings, but should work correctly on all php versions.

Anonymous’s picture

Status: Fixed » Closed (fixed)

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