From: Ulf Wendel Date: Thu, 3 Jan 2008 10:19:02 +0000 (+0000) Subject: Make it work for MySQL 6.x as well. X-Git-Tag: RELEASE_2_0_0a1~1050 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=60be62b78183f6bb54c340d9effeef89333f6629;p=php Make it work for MySQL 6.x as well. --- diff --git a/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt b/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt index 9e6cef0555..1a0ded0f63 100644 --- a/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt +++ b/ext/mysqli/tests/mysqli_stmt_send_long_data.phpt @@ -49,6 +49,10 @@ require_once('skipifconnectfailure.inc'); mysqli_free_result($res); + if (isset($row['VARIABLE_VALUE']) && !isset($row['Value'])) + // MySQL 6.0 + $row['Value'] = $row['VARIABLE_VALUE']; + if (0 === ($max_allowed_packet = (int)$row['Value'])) printf("[011] Cannot determine max_allowed_packet size and/or bogus max_allowed_packet setting used.\n");