Using HTML Purifier 2.1.5 for PHP4 and 5.x-1.3 module I got:
Parse error: parse error, unexpected ',', expecting '(' in /path/to/website/sites/all/modules/htmlpurifier/htmlpurifier.module on line 112

The attached patch temporary solve this issue: to be used only when version control against version 3.x is not necessary (on PHP4 we have to use 2.x).

Could a control be included to solve this issue making this module both compatible with PHP4 and PHP5, since HTML Purifier 2.x works fine on PHP4?

CommentFileSizeAuthor
htmlpurifier_noversion_php4.patch1.23 KBchirale

Comments

ezyang’s picture

Status: Active » Closed (won't fix)

Apparently, we fixed this in the CVS but never made a new release for it. Unfortunately, this is all a moot point now because we have officially dropped support for PHP4 on HTML Purifier and will not be issuing any bugfixes/security fixes now. I will update the project page accordingly.

chirale’s picture

Thanks Edward, I've tested 5.x-1.3 version of the module with HTML Purifier 2.1.5 on PHP 4.3.10. With the above patch I haven't any other problem: interested users could follows these links and apply the above patch to make HTML Purifier works even on obsolete environments.