Active
Project:
Drupal Markup Engine
Version:
5.x-1.0
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
25 Mar 2008 at 15:10 UTC
Updated:
4 May 2008 at 03:59 UTC
When I try to enable the module, I get:
Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /usr/home/brianv/public_html/slmag/sites/all/modules/dme/dme.module on line 135
This was on a clean install of D5.
Removing the 'static' keyword on line 135 made this issue go away; however, that method was made static for a reason, so that is not a 'correct' solution to this.
Comments
Comment #1
jcfiala commentedThat's odd - sorry, didn't see this before. What version of php are you running on? I'm wondering if that may be related to the problem.
Comment #2
robertem@drupal.org commentedSame problem here, PHP Version 5.2.3, also seems to work after removing the word static.
HTH,
Rob
Comment #3
jcfiala commentedHum. Looking at http://www.php.net/language.oop5.static, it seems that there was some way in which PHP changed with respect to static around 5.3.0, and that's probably what's being the problem. I'll try to set aside some time in the near future to sit down and figure out what's going on with that.
Comment #4
robertem@drupal.org commentedThank you for that. Also thanks for the great work your company, and Laura in particular, did on the PopSci case study, it is very informative and helpful.
Rob
Comment #5
dwwWeird. I'm using DME 5.x-1.0 (unmodified) and php 5.2.4, and haven't hit any problems with the "static" keyword. I've configured two DME tags, a hook tag and a node tag, both with some additional supported attributes, and everything is working fine. Just another data point...
Comment #6
myersca commentedI am also experiencing this problem. PHP version: 5.2.5