Skip to content

Commit aff9d36

Browse files
committed
Clean out test table after INSERT packet overflow test
1 parent aad4952 commit aff9d36

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

ext/mysqli/tests/mysqli_insert_packet_overflow.phpt

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,20 @@ memory_limit=256M
110110
print "done!";
111111
?>
112112
--CLEAN--
113-
<?php
114-
require_once("clean_table.inc");
113+
<?
114+
require_once('connect.inc');
115+
116+
if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) {
117+
printf("[clean] Cannot connect to the server using host=%s, user=%s, passwd=***, dbname=%s, port=%s, socket=%s\n",
118+
$host, $user, $db, $port, $socket);
119+
}
120+
121+
$table_name = 'test__mysqli_insert_packet_overflow';
122+
if (!mysqli_query($link, 'DROP TABLE IF EXISTS {$table_name}')) {
123+
printf("[clean] Failed to drop old test table: [%d] %s\n", mysqli_errno($link), mysqli_error($link));
124+
}
125+
126+
mysqli_close($link);
115127
?>
116128
--EXPECT--
117129
done!

0 commit comments

Comments
 (0)