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:
Nikita Popov 2021-02-08 09:49:33 +01:00
parent 8be1cd6671
commit 99a1bc0881
2 changed files with 5 additions and 0 deletions

View File

@ -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

View File

@ -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__;