phpbb / epv

Extension Pre-Validator
GNU General Public License v2.0
9 stars 17 forks source link

Warning: preg_match(): Compilation failed: PCRE does not support #86

Closed LukeWCS closed 5 years ago

LukeWCS commented 5 years ago

Hi

Currently I try to install EPV localy in a WAMP environment. Generally it works but the following error messsages appears:

`Warning: preg_match(): Compilation failed: PCRE does not support \L, \l, \N{name }, \U, or \u at offset 19 in G:\programme\wamp\www\epv\src\Tests\Tests\epvtest validate_languages.php on line 61

Warning: preg_match(): Compilation failed: PCRE does not support \L, \l, \N{name }, \U, or \u at offset 19 in G:\programme\wamp\www\epv\src\Tests\Tests\epvtest validate_languages.php on line 61

Warning: preg_match(): Compilation failed: PCRE does not support \L, \l, \N{name }, \U, or \u at offset 19 in G:\programme\wamp\www\epv\src\Tests\Tests\epvtest validate_languages.php on line 61` .... and a lot more of these error .

Windows 7 Pro /64 WAMP Server 3.1.7 /64 Tested PHPs: 5.6.40: ok, but PCRE error 7.0.33: ok, but PCRE error 7.1.26: ok, but PCRE error 7.2.14: ok, but PCRE error 7.3.1: doesn't work: [31m Directory name must not be empty. [39m

Last year I tested EPV on a XAMPP server (7.2.9 /32), but the same problem with PCRE.

kasimi commented 5 years ago

Open epv_test_validate_languages.php and on line 61, replace $this->basedir with preg_quote($this->basedir). Does that fix the errors?

LukeWCS commented 5 years ago

Yes, this fixes the problem. Thanks kasimi! :-)