From 471540d2853b3077af5dfbbbf2146edc6228a0cb Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 2 Mar 2016 00:34:36 +0100 Subject: [PATCH] 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". --- ext/fileinfo/tests/bug68819_002.phpt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/fileinfo/tests/bug68819_002.phpt b/ext/fileinfo/tests/bug68819_002.phpt index cec238d63e..7d5f6c642d 100644 --- a/ext/fileinfo/tests/bug68819_002.phpt +++ b/ext/fileinfo/tests/bug68819_002.phpt @@ -12,7 +12,7 @@ $string .= "\r\n"; $string .= "''''"; // Total string length > 8192 -$string .= str_repeat(chr(rand(32, 127)), 8184); +$string .= str_repeat("a", 8184); // Ending in this string $string .= "say"; -- 2.40.0