Skip to content

Commit 99a1bc0

Browse files
committed
Skip two gettext tests under --repeat
gettext leaks global state across requests, so don't repeat these tests. See also GH-6641.
1 parent 8be1cd6 commit 99a1bc0

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

ext/gettext/tests/bug53251.phpt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ Bug #53251 (bindtextdomain with null dir doesn't return old value)
33
--SKIPIF--
44
<?php
55
if (!extension_loaded('gettext')) die('skip gettext extension not available');
6+
if (getenv('SKIP_REPEAT')) die('skip gettext leaks global state across requests');
67
?>
78
--FILE--
89
<?php

ext/gettext/tests/gettext_bindtextdomain-cwd.phpt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ if (!extension_loaded("gettext")) {
88
if (!setlocale(LC_ALL, 'en_US.UTF-8')) {
99
die("skip en_US.UTF-8 locale not supported.");
1010
}
11+
if (getenv('SKIP_REPEAT')) {
12+
die('skip gettext leaks global state across requests');
13+
}
14+
?>
1115
--FILE--
1216
<?php
1317
$base_dir = __DIR__;

0 commit comments

Comments
 (0)