After enabling fquery module I get the following errors:
[client 10.0.0.69] PHP Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /srv/www/html/modules/fquery/fquery.module on line 76
[client 10.0.0.69] PHP Parse error: parse error, unexpected '&', expecting T_VARIABLE or '$' in /srv/www/html/modules/fquery/fquery.module on line 127
Does this module only work properly on php5 or something? I have 4.3.11 on this host (actually a LAMP appliance.) If I take out the ampersands I don't get the errors any more but I also haven't tested it to see if it works.
Comments
Comment #1
Steven commentedfQuery requires PHP5 because it uses
foreach ($x as &$y)(the ampersand). The equivalent code in PHP4 requires a custom iterator loop.This is by design, for now.