diff options
| -rw-r--r-- | ext/pcre/tests/bug76850.phpt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/ext/pcre/tests/bug76850.phpt b/ext/pcre/tests/bug76850.phpt new file mode 100644 index 0000000000..ec06ccf897 --- /dev/null +++ b/ext/pcre/tests/bug76850.phpt @@ -0,0 +1,21 @@ +--TEST-- +Bug #76850 Exit code mangled by set locale/preg_match +--FILE-- +<?php + +function foo() +{ + $oldlocale = setlocale(LC_CTYPE, 0); + setlocale(LC_CTYPE, $oldlocale); +} + +foo(); + +var_dump(preg_match('/./', "a")); + +?> +==DONE== +--EXPECT-- +int(1) +==DONE== + |
