PHP below 4.3.3 compatability.
| Project: | Promotion |
| Version: | 5.x-1.8 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | won't fix |
Jump to:
Hi.
My server runs PHP 4.3.11 and I am getting the following error when user registers with a promo code:
###################################
-warning: preg_match(): Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 in /hsphere/local/home/***/freebusinesslist.com.au/sites/all/modules/promotion/promotion.module on line 1031.
-warning: preg_match(): Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 16 in /hsphere/local/home/***/freebusinesslist.com.au/sites/all/modules/promotion/promotion.module on line 1031.
-warning: preg_match(): Compilation failed: PCRE does not support \L, \l, \N, \P, \p, \U, \u, or \X at offset 3 in /hsphere/local/home/***/freebusinesslist.com.au/sites/all/modules/promotion/promotion.module on line 1031.
-Sorry, but the code you have given does not match any current promotion. Please check that it is correct and try again.
#####################################
I have used replacement of str_split() function from PEAR PHP Compat package (str_split() was introduced in PHP 5), but the error above - I presume - is related to "offset" parameter which appeared since PHP 4.3.3.
Any ideas of how to make this great module to work under PHP < 4.3.3???

#1
I just want to point out that 4.3.11 > 4.3.3
#2
I see and thanks. That worked as 4.3.11 is more like 4.3.1.1 in my mind. Anyway, there's an issue.
#3
PHP 4 is dead. It is mostly not receiving any support anymore and I'm not going to work at back-porting. If someone wants to provide a patch, fine, but otherwise: won't fix.