diff options
Diffstat (limited to 'ext/mysqli/tests/bug52891.phpt')
-rw-r--r-- | ext/mysqli/tests/bug52891.phpt | 122 |
1 files changed, 61 insertions, 61 deletions
diff --git a/ext/mysqli/tests/bug52891.phpt b/ext/mysqli/tests/bug52891.phpt index 8ea2e36f35..2c4e19ca4c 100644 --- a/ext/mysqli/tests/bug52891.phpt +++ b/ext/mysqli/tests/bug52891.phpt @@ -10,90 +10,90 @@ if (!$IS_MYSQLND) { ?> --FILE-- <?php - require_once("connect.inc"); + require_once("connect.inc"); - if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { - printf("[001] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); - } + if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket)) { + printf("[001] Connect failed, [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error()); + } - if (!$link->query("DROP TABLE IF EXISTS tuint") || - !$link->query("DROP TABLE IF EXISTS tsint")) { - printf("[002] [%d] %s\n", $link->errno, $link->error); - } + if (!$link->query("DROP TABLE IF EXISTS tuint") || + !$link->query("DROP TABLE IF EXISTS tsint")) { + printf("[002] [%d] %s\n", $link->errno, $link->error); + } - if (!$link->query("CREATE TABLE tuint(a BIGINT UNSIGNED) ENGINE=" . $engine) || - !$link->query("CREATE TABLE tsint(a BIGINT) ENGINE=" . $engine)) { - printf("[003] [%d] %s\n", $link->errno, $link->error); - } + if (!$link->query("CREATE TABLE tuint(a BIGINT UNSIGNED) ENGINE=" . $engine) || + !$link->query("CREATE TABLE tsint(a BIGINT) ENGINE=" . $engine)) { + printf("[003] [%d] %s\n", $link->errno, $link->error); + } - if (!$stmt1 = $link->prepare("INSERT INTO tuint VALUES(?)")) - printf("[004] [%d] %s\n", $link->errno, $link->error); + if (!$stmt1 = $link->prepare("INSERT INTO tuint VALUES(?)")) + printf("[004] [%d] %s\n", $link->errno, $link->error); - if (!$stmt2 = $link->prepare("INSERT INTO tsint VALUES(?)")) - printf("[005] [%d] %s\n", $link->errno, $link->error); + if (!$stmt2 = $link->prepare("INSERT INTO tsint VALUES(?)")) + printf("[005] [%d] %s\n", $link->errno, $link->error); - $param = 42; + $param = 42; - if (!$stmt1->bind_param("i", $param)) - printf("[006] [%d] %s\n", $stmt1->errno, $stmt1->error); + if (!$stmt1->bind_param("i", $param)) + printf("[006] [%d] %s\n", $stmt1->errno, $stmt1->error); - if (!$stmt2->bind_param("i", $param)) - printf("[007] [%d] %s\n", $stmt2->errno, $stmt2->error); + if (!$stmt2->bind_param("i", $param)) + printf("[007] [%d] %s\n", $stmt2->errno, $stmt2->error); - /* first insert normal value to force initial send of types */ - if (!$stmt1->execute()) - printf("[008] [%d] %s\n", $stmt1->errno, $stmt1->error); + /* first insert normal value to force initial send of types */ + if (!$stmt1->execute()) + printf("[008] [%d] %s\n", $stmt1->errno, $stmt1->error); - if (!$stmt2->execute()) - printf("[009] [%d] %s\n", $stmt2->errno, $stmt2->error); + if (!$stmt2->execute()) + printf("[009] [%d] %s\n", $stmt2->errno, $stmt2->error); - /* now try values that don't fit in long, on 32bit, new types should be sent or 0 will be inserted */ - $param = -4294967297; - if (!$stmt2->execute()) - printf("[010] [%d] %s\n", $stmt2->errno, $stmt2->error); + /* now try values that don't fit in long, on 32bit, new types should be sent or 0 will be inserted */ + $param = -4294967297; + if (!$stmt2->execute()) + printf("[010] [%d] %s\n", $stmt2->errno, $stmt2->error); - /* again normal value */ - $param = 43; + /* again normal value */ + $param = 43; - if (!$stmt1->execute()) - printf("[011] [%d] %s\n", $stmt1->errno, $stmt1->error); + if (!$stmt1->execute()) + printf("[011] [%d] %s\n", $stmt1->errno, $stmt1->error); - if (!$stmt2->execute()) - printf("[012] [%d] %s\n", $stmt2->errno, $stmt2->error); + if (!$stmt2->execute()) + printf("[012] [%d] %s\n", $stmt2->errno, $stmt2->error); - /* again conversion */ - $param = -4294967295; - if (!$stmt2->execute()) - printf("[013] [%d] %s\n", $stmt2->errno, $stmt2->error); + /* again conversion */ + $param = -4294967295; + if (!$stmt2->execute()) + printf("[013] [%d] %s\n", $stmt2->errno, $stmt2->error); - $param = 4294967295; - if (!$stmt1->execute()) - printf("[014] [%d] %s\n", $stmt1->errno, $stmt1->error); + $param = 4294967295; + if (!$stmt1->execute()) + printf("[014] [%d] %s\n", $stmt1->errno, $stmt1->error); - if (!$stmt2->execute()) - printf("[015] [%d] %s\n", $stmt2->errno, $stmt2->error); + if (!$stmt2->execute()) + printf("[015] [%d] %s\n", $stmt2->errno, $stmt2->error); - $param = 4294967297; - if (!$stmt1->execute()) - printf("[016] [%d] %s\n", $stmt1->errno, $stmt1->error); + $param = 4294967297; + if (!$stmt1->execute()) + printf("[016] [%d] %s\n", $stmt1->errno, $stmt1->error); - if (!$stmt2->execute()) - printf("[017] [%d] %s\n", $stmt2->errno, $stmt2->error); + if (!$stmt2->execute()) + printf("[017] [%d] %s\n", $stmt2->errno, $stmt2->error); - $result = $link->query("SELECT * FROM tsint ORDER BY a ASC"); - $result2 = $link->query("SELECT * FROM tuint ORDER BY a ASC"); + $result = $link->query("SELECT * FROM tsint ORDER BY a ASC"); + $result2 = $link->query("SELECT * FROM tuint ORDER BY a ASC"); - echo "tsint:\n"; - while ($row = $result->fetch_assoc()) { - var_dump($row); - } - echo "tuint:\n"; - while ($row = $result2->fetch_assoc()) { - var_dump($row); - } + echo "tsint:\n"; + while ($row = $result->fetch_assoc()) { + var_dump($row); + } + echo "tuint:\n"; + while ($row = $result2->fetch_assoc()) { + var_dump($row); + } - echo "done"; + echo "done"; ?> --CLEAN-- <?php |