Closed (won't fix)
Project:
HTML Purifier
Version:
5.x-1.3
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
4 Sep 2008 at 15:05 UTC
Updated:
5 Sep 2008 at 18:42 UTC
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?
| Comment | File | Size | Author |
|---|---|---|---|
| htmlpurifier_noversion_php4.patch | 1.23 KB | chirale |
Comments
Comment #1
ezyang commentedApparently, 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.
Comment #2
chirale commentedThanks 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.