Skip to content

Commit 471540d

Browse files
committed
Fix intermittent failure of bug_68819_002.phpt
The test used rand(32, 127) to select the character, however chr(127) results in "data" instead of the expected result, so this test would fail in something like 1% of the runs. Replace rand() with fixed character "a".
1 parent 0bbea60 commit 471540d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/fileinfo/tests/bug68819_002.phpt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ $string .= "\r\n";
1212
$string .= "''''";
1313

1414
// Total string length > 8192
15-
$string .= str_repeat(chr(rand(32, 127)), 8184);
15+
$string .= str_repeat("a", 8184);
1616

1717
// Ending in this string
1818
$string .= "say";

0 commit comments

Comments
 (0)