com php-src: Add test for bug #76850: ext/pcre/tests/bug76850.phpt

From: Date: Sat, 08 Sep 2018 19:39:54 +0000
Subject: com php-src: Add test for bug #76850: ext/pcre/tests/bug76850.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-103028@lists.php.net to get a copy of this message
Commit: 4905d5e0dfe13fa2645c34352d253b9a1ca11eed Author: Anatol Belski <ab@php.net> Sat, 8 Sep 2018 21:39:54 +0200 Parents: c6ddd45650c295bdf800c600e89a15c0af9a1e09 Branches: PHP-7.3 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=4905d5e0dfe13fa2645c34352d253b9a1ca11eed Log: Add test for bug #76850 Bugs: https://bugs.php.net/76850 Changed paths: A ext/pcre/tests/bug76850.phpt Diff: diff --git a/ext/pcre/tests/bug76850.phpt b/ext/pcre/tests/bug76850.phpt new file mode 100644 index 0000000..ec06ccf --- /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== +

« previous php.cvs (#103028) next »