mirror of
https://github.com/php/php-src.git
synced 2025-08-17 22:48:57 +02:00
There subtle differences between Linux and Win. mysqlnd is a bit more verbose on Win... silencing to make the test pass
This commit is contained in:
parent
26270b4fd7
commit
d356459971
1 changed files with 4 additions and 4 deletions
|
@ -22,11 +22,11 @@ require_once('skipifconnectfailure.inc');
|
|||
$len = strlen($sql);
|
||||
assert($len < $package_size);
|
||||
|
||||
if (!mysqli_query($link, $sql)) {
|
||||
if (!@mysqli_query($link, $sql)) {
|
||||
if (1153 == mysqli_errno($link) || 2006 == mysqli_errno($link) || stristr(mysqli_error($link), 'max_allowed_packet'))
|
||||
/*
|
||||
myslqnd - [1153] Got a packet bigger than 'max_allowed_packet' bytes
|
||||
libmysql -[2006] MySQL server has gone away
|
||||
/*
|
||||
myslqnd - [1153] Got a packet bigger than 'max_allowed_packet' bytes
|
||||
libmysql -[2006] MySQL server has gone away
|
||||
*/
|
||||
return false;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue