PHP 5.4 preg_match error

See all posts See thread Reply

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
Re: PHP 5.4 preg_match error new!
by colin, 8 years, 7 months ago