Skip to content

Commit 34ea841

Browse files
committed
Cast to string instead of int in mysqli test
1 parent 617b047 commit 34ea841

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/mysqli/tests/mysqli_stmt_bind_result_format.phpt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ memory_limit=83886080
227227
$current_targets = mt_rand(-100000, 100000) / 10;
228228
do {
229229
$trend = (mt_rand(0, 3) > 1) ? (mt_rand(-10000, 10000) / 100) : 'NULL';
230-
} while (isset($values[(int)$trend]));
230+
} while (isset($values[(string)$trend]));
231231

232232
$sql = sprintf('INSERT INTO test(targetport, current_targets, maxreports, trend) VALUES (%d, %f, %s, %s)',
233233
$i,
@@ -239,7 +239,7 @@ memory_limit=83886080
239239
break 2;
240240
}
241241
if ($current_targets > 0 && $trend !== 'NULL')
242-
$values[(int)$trend] = $i;
242+
$values[(string)$trend] = $i;
243243
}
244244
krsort($values);
245245

0 commit comments

Comments
 (0)