I am getting the following error when testing the May, 9 2006 release of the 4.7 version.

Parse error: syntax error, unexpected T_STATIC, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /Users/mdshrops/public_html/drupalucit/modules/ldap_integration-4.6.0/ldap_integration/LDAPInterface.php on line 22

I am running php 4.4.2, Apache 1.3.3 and MySQL 4.1.

Also, I noticed that the zcallbacks.module is not included in the 4.7 package on the wiki site. Is this intended?

Thanks!
Mark

Comments

MartinSfromB’s picture

The actual release seems to not be php4 compatible. With php5 it works.

shrop’s picture

I wondered about that. Hopefully Pablo might have a way to make it work for us on php4.

Thanks!
Mark

pablobm’s picture

Hi guys. Can any of you just remove the keyword "static" from line 22 of LDAPInterface.php and verify it solves the problem, please?. I don't have a PHP4 setup now to test this.

And yes, zcallbacks was no longer necessary for 4.7.

Thanks!

amatrix’s picture

works after removing keywork "static" from lines 22 and 245.
using php 4.3.2

shrop’s picture

I was also about to run the 2006-05-09 4.7 release of ldap_integration module on php 4.4.2 when "static" was removed from lines 22 and 245.

Thanks for the help on this!

Pablo, you can close this issue if you want. You may want to add this to the documentation site.

Thanks!
Mark

pablobm’s picture

Assigned: Unassigned » pablobm
Status: Active » Fixed

Thanks guys. I just uploaded a new version, so this change does not need to be done manually next time. The PHP4 code will do just fine on PHP5.

pablobm’s picture

Status: Fixed » Closed (fixed)