Reply to Re: PHP 5.4 preg_match error

Re: PHP 5.4 preg_match error new!
by Vladimir, 8 years, 7 months ago
Hi,

PHP 5.4+ versions are very sensitive to regular expressions and in this case gives warning message on not valid range expression part [\.-\w]
Dash symbol means some kind of range like a-z or 0-9, but here symbols "." to "w" does not make any sense. I assume that dash should come on first or last position inside brackets.
Search for all "preg_match" expressions through "class.upload.php" file and change [\.-\w] to [\.\w-] and it will work for all newer PHP versions.

It worked more me already.Reply

Your reply

Name *
Email 
Title *
Text *
CAPTCHA image
Enter the code displayed on the image:
Click on the image to generate another one if it is hard to read it. The case is important