--- embedaddon/php/ext/mysqli/tests/mysqli_kill.phpt 2012/02/21 23:47:58 1.1.1.1 +++ embedaddon/php/ext/mysqli/tests/mysqli_kill.phpt 2012/05/29 12:34:41 1.1.1.2 @@ -42,33 +42,33 @@ require_once('skipifconnectfailure.inc'); var_dump($link); if ($IS_MYSQLND) { if ($link->info != 'Records: 6 Duplicates: 0 Warnings: 0') { - printf("[008] mysqlnd used to be more verbose and used to support SELECT"); + printf("[008] mysqlnd used to be more verbose and used to support SELECT\n"); } if ($link->stat != NULL) { printf("[009] NULL expected because of error.\n"); } } else { if ($link->info != NULL) { - printf("[010] Time for wonders - libmysql has started to support SELECT, change test"); + printf("[008] Time for wonders - libmysql has started to support SELECT, change test\n"); } } mysqli_close($link); if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) - printf("[011] Cannot connect, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); + printf("[010] Cannot connect, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); mysqli_kill($link, -1); if ((!$res = mysqli_query($link, "SELECT id FROM test LIMIT 1")) || (!$tmp = mysqli_fetch_assoc($res))) { - printf("[012] Connection should not be gone, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); + printf("[011] Connection should not be gone, [%d] %s\n", mysqli_errno($link), mysqli_error($link)); } var_dump($tmp); mysqli_free_result($res); mysqli_close($link); if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) - printf("[013] Cannot connect, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); + printf("[012] Cannot connect, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); mysqli_change_user($link, "This might work if you accept anonymous users in your setup", "password", $db); mysqli_kill($link, -1); @@ -99,6 +99,18 @@ object(mysqli)#%d (%d) { int(2006) [%u|b%"error"]=> %unicode|string%(%d) "%s" + [%u|b%"error_list"]=> + array(1) { + [0]=> + array(3) { + [%u|b%"errno"]=> + int(2006) + [%u|b%"sqlstate"]=> + %unicode|string%(5) "%s" + [%u|b%"error"]=> + %unicode|string%(%d) "%s" + } + } [%u|b%"field_count"]=> int(0) [%u|b%"host_info"]=> @@ -111,7 +123,7 @@ object(mysqli)#%d (%d) { %unicode|string%(%d) "%s" [%u|b%"server_version"]=> int(%d) - ["stat"]=> + [%u|b%"stat"]=> %s [%u|b%"sqlstate"]=> %unicode|string%(5) "HY000" @@ -130,4 +142,4 @@ array(1) { } Warning: mysqli_kill(): processid should have positive value in %s on line %d -done! +done! \ No newline at end of file