mirror of
https://github.com/php/php-src.git
synced 2024-09-21 09:57:23 +00:00
Skip two gettext tests under --repeat
gettext leaks global state across requests, so don't repeat these tests. See also GH-6641.
This commit is contained in:
parent
8be1cd6671
commit
99a1bc0881
@ -3,6 +3,7 @@ Bug #53251 (bindtextdomain with null dir doesn't return old value)
|
||||
--SKIPIF--
|
||||
<?php
|
||||
if (!extension_loaded('gettext')) die('skip gettext extension not available');
|
||||
if (getenv('SKIP_REPEAT')) die('skip gettext leaks global state across requests');
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
|
@ -8,6 +8,10 @@ if (!extension_loaded("gettext")) {
|
||||
if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
|
||||
die("skip en_US.UTF-8 locale not supported.");
|
||||
}
|
||||
if (getenv('SKIP_REPEAT')) {
|
||||
die('skip gettext leaks global state across requests');
|
||||
}
|
||||
?>
|
||||
--FILE--
|
||||
<?php
|
||||
$base_dir = __DIR__;
|
||||
|
Loading…
Reference in New Issue
Block a user