The void_error_handler static method in the LDAPInterface class seems to cause problems with php 4 (specifically, I'm using 4.4.2).

PHP complains about the static keyword and triggers a fatal error.

This patch moves the error handler to a function outside the scope of the LDAPInterface class which was the best way I could come up with to make this work in php 4 and php 5. Strangely I can't find any real reference to solving this issue elsewhere on the net so I'd appreciate if anyone has another solution or information that static functions should work in php 4 somehow.

CommentFileSizeAuthor
ldap_integration_php4_static_fix.patch1.62 KBjfitzell

Comments

pablobm’s picture

Assigned: Unassigned » pablobm
Status: Needs review » Fixed

Solved some time ago. Thanks.

jfitzell’s picture

Hmm.. so it was. I think I was accidentaly using the May 9 version instead of the June 6 version. Do you think you could name the files and source directories differently for each release so they don't get so easily muddled? :)

pablobm’s picture

Status: Fixed » Closed (fixed)

What I am going to do is going back to use CVS again. It finally works for me, so I am just waiting until I finish a big code refactoring I am working on, and then release new 4.6 and 4.7 versions and change documentation, project page and so on.