mirror of
https://github.com/php/php-src.git
synced 2026-04-13 11:02:55 +02:00
21
ext/pcre/tests/bug76850.phpt
Normal file
21
ext/pcre/tests/bug76850.phpt
Normal file
@@ -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==
|
||||
|
||||
Reference in New Issue
Block a user