Skip to content

Commit c92425d

Browse files
committed
Merge branch 'PHP-7.3'
* PHP-7.3: Add test for bug #76850
2 parents 3de0ba7 + 4905d5e commit c92425d

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

ext/pcre/tests/bug76850.phpt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
--TEST--
2+
Bug #76850 Exit code mangled by set locale/preg_match
3+
--FILE--
4+
<?php
5+
6+
function foo()
7+
{
8+
$oldlocale = setlocale(LC_CTYPE, 0);
9+
setlocale(LC_CTYPE, $oldlocale);
10+
}
11+
12+
foo();
13+
14+
var_dump(preg_match('/./', "a"));
15+
16+
?>
17+
==DONE==
18+
--EXPECT--
19+
int(1)
20+
==DONE==
21+

0 commit comments

Comments
 (0)