Skip to content

Commit c0e73c9

Browse files
committed
Fix mysqli test
1 parent 74f0570 commit c0e73c9

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

ext/mysqli/tests/mysqli_debug_mysqlnd_control_string.phpt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ if (defined('MYSQLI_DEBUG_TRACE_ENABLED') && !MYSQLI_DEBUG_TRACE_ENABLED)
2020
require_once 'connect.inc';
2121
require_once 'table.inc';
2222

23-
function try_control_string($link, $control_string, $trace_file, $offset) {
23+
function try_control_string($link, $control_string, $trace_file, $offset): string {
2424

2525
@unlink($trace_file);
2626
if (true !== ($tmp = @mysqli_debug($control_string))) {
@@ -29,7 +29,7 @@ if (defined('MYSQLI_DEBUG_TRACE_ENABLED') && !MYSQLI_DEBUG_TRACE_ENABLED)
2929
$control_string,
3030
gettype($tmp),
3131
$tmp);
32-
return false;
32+
return '';
3333
}
3434

3535
if (!$res = mysqli_query($link, 'SELECT * FROM test')) {
@@ -38,7 +38,7 @@ if (defined('MYSQLI_DEBUG_TRACE_ENABLED') && !MYSQLI_DEBUG_TRACE_ENABLED)
3838
$control_string,
3939
mysqli_errno($link),
4040
mysqli_error($link));
41-
return false;
41+
return '';
4242
}
4343
while (mysqli_fetch_assoc($res))
4444
;
@@ -51,7 +51,7 @@ if (defined('MYSQLI_DEBUG_TRACE_ENABLED') && !MYSQLI_DEBUG_TRACE_ENABLED)
5151
$control_string,
5252
gettype($tmp),
5353
$tmp);
54-
return false;
54+
return '';
5555
}
5656

5757
return trim(substr(file_get_contents($trace_file), 0, 100024));

0 commit comments

Comments
 (0)