]> granicus.if.org Git - php/commit
Fix intermittent failure of bug_68819_002.phpt
authorNikita Popov <nikic@php.net>
Tue, 1 Mar 2016 23:34:36 +0000 (00:34 +0100)
committerNikita Popov <nikic@php.net>
Tue, 1 Mar 2016 23:34:36 +0000 (00:34 +0100)
commit471540d2853b3077af5dfbbbf2146edc6228a0cb
treea6a2a3eb7cd944185034a9bf4466427565760ef9
parent0bbea605241932eba24d82378b6ea5fcf8307029
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