diff options
Diffstat (limited to 'ext/pcre/tests/locales.phpt')
-rw-r--r-- | ext/pcre/tests/locales.phpt | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/ext/pcre/tests/locales.phpt b/ext/pcre/tests/locales.phpt deleted file mode 100644 index 6b600236cf..0000000000 --- a/ext/pcre/tests/locales.phpt +++ /dev/null @@ -1,25 +0,0 @@ ---TEST-- -Localized match ---SKIPIF-- -<?php if (!function_exists('setlocale')) die('skip: setlocale() not available'); ?> -<?php if (!@setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese')) die('skip pt locale not available'); ---FILE-- -<?php - -// this tests if the cache is working correctly, as the char tables -// must be rebuilt after the locale change - -setlocale(LC_ALL, 'C', 'POSIX'); -var_dump(preg_match('/^\w{6}$/', 'aאבחיט')); - -setlocale(LC_ALL, 'pt_PT', 'pt', 'pt_PT.ISO8859-1', 'portuguese'); -var_dump(preg_match('/^\w{6}$/', 'aאבחיט')); - -setlocale(LC_ALL, 'C', 'POSIX'); -var_dump(preg_match('/^\w{6}$/', 'aאבחיט')); - -?> ---EXPECT-- -int(0) -int(1) -int(0) |