Default value assigned to a parameter passed by reference
ags - November 1, 2009 - 20:04
| Project: | Nodewords |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Parse error: syntax error, unexpected '=', expecting ')' in /home/domain/sites/all/modules/nodewords/nodewords.install on line 340
Linea 340-341: function nodewords_update_6113(&$sandbox = NULL) {
$ret = array();

#1
The update function argument is the same as reported in http://api.drupal.org/api/function/hook_update_N/6.
#2
#3
Can you solve this now?
#4
Assigning a default value for a parameter passed by reference is only allowed in PHP5; I removed the default value for that parameter.
Thanks for the report.
#5
--
solved my problem
#6
i am a bit of a noob just trying out Drupal for the first time. What do I have to do to fix this problem?
#7
webgimp, I suggest you to get the latest version of the code again. This issue would have been fixed, and others you will find if you keep using the previous version if you don't have the chance to wait for the next stable release.
#8
if in my server php 4 how i can fix ?
#9
Automatically closed -- issue fixed for 2 weeks with no activity.