⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 mysqli_stmt_bind_result.phpt

📁 linux下安装不上mysql5与php5的可用此关联
💻 PHPT
📖 第 1 页 / 共 2 页
字号:
        func_mysqli_stmt_bind_result($link, $engine, "i", "BOOL", 1, 100);        func_mysqli_stmt_bind_result($link, $engine, "i", "BOOL", NULL, 120);    func_mysqli_stmt_bind_result($link, $engine, "i", "BOOLEAN", 0, 140);    func_mysqli_stmt_bind_result($link, $engine, "i", "BOOLEAN", NULL, 160);        func_mysqli_stmt_bind_result($link, $engine, "i", "SMALLINT", -32768, 180);    func_mysqli_stmt_bind_result($link, $engine, "i", "SMALLINT", 32767, 200);    func_mysqli_stmt_bind_result($link, $engine, "i", "SMALLINT", NULL, 220);    func_mysqli_stmt_bind_result($link, $engine, "i", "SMALLINT UNSIGNED", 65535, 240);    func_mysqli_stmt_bind_result($link, $engine, "i", "SMALLINT UNSIGNED", NULL, 260);        func_mysqli_stmt_bind_result($link, $engine, "d", "MEDIUMINT", -8388608, 280, "integer");    func_mysqli_stmt_bind_result($link, $engine, "d", "MEDIUMINT", 8388607, 300, "integer");    func_mysqli_stmt_bind_result($link, $engine, "d", "MEDIUMINT", NULL, 320);        func_mysqli_stmt_bind_result($link, $engine, "d", "MEDIUMINT UNSIGNED", 16777215, 340, "integer");    func_mysqli_stmt_bind_result($link, $engine, "d", "MEDIUMINT UNSIGNED", NULL, 360);        func_mysqli_stmt_bind_result($link, $engine, "i", "INTEGER", (defined("PHP_INT_MAX")) ? max(-1 * PHP_INT_MAX + 1, -2147483648) : 1, 380);        func_mysqli_stmt_bind_result($link, $engine, "d", "INTEGER", -2147483648, 400, "integer");        func_mysqli_stmt_bind_result($link, $engine, "i", "INTEGER", (defined("PHP_INT_MAX")) ? min(2147483647, PHP_INT_MAX) : 1, 420);    func_mysqli_stmt_bind_result($link, $engine, "i", "INTEGER", NULL, 440);    func_mysqli_stmt_bind_result($link, $engine, "i", "INTEGER UNSIGNED", (defined("PHP_INT_MAX")) ? min(4294967295, 2147483647) : 1, 460); /* test seem to be broken: Wy do we expect double here?    func_mysqli_stmt_bind_result($link, $engine, "d", "INTEGER UNSIGNED", 4294967295, 480, (defined("PHP_INT_MAX") && (4294967295 > PHP_INT_MAX)) ? "string" : null); */    func_mysqli_stmt_bind_result($link, $engine, "i", "INTEGER UNSIGNED", NULL, 500);   /* test is broken too: we bind "integer" but value is a float      func_mysqli_stmt_bind_result($link, $engine, "i", "BIGINT", -9223372036854775808, 520);*/    func_mysqli_stmt_bind_result($link, $engine, "i", "BIGINT", NULL, 540);/* test is broken too: we bind "integer" but value is a float      func_mysqli_stmt_bind_result($link, $engine, "i", "BIGINT UNSIGNED", 18446744073709551615, 560);*/    func_mysqli_stmt_bind_result($link, $engine, "i", "BIGINT UNSIGNED", NULL, 580);        func_mysqli_stmt_bind_result($link, $engine, "d", "FLOAT", -9223372036854775808 - 1.1, 600);    func_mysqli_stmt_bind_result($link, $engine, "d", "FLOAT", NULL, 620);    func_mysqli_stmt_bind_result($link, $engine, "d", "FLOAT UNSIGNED", 18446744073709551615 + 1.1, 640);    func_mysqli_stmt_bind_result($link, $engine, "d", "FLOAT UNSIGNED ", NULL, 660);        // Yes, we need the temporary variable. The PHP casting will fouls us otherwise.    $tmp = strval('-99999999.99');    func_mysqli_stmt_bind_result($link, $engine, "d", "DOUBLE(10,2)", $tmp, 680, "string");    func_mysqli_stmt_bind_result($link, $engine, "d", "DOUBLE(10,2)", NULL, 700);    $tmp = strval('99999999.99');    func_mysqli_stmt_bind_result($link, $engine, "d", "DOUBLE(10,2) UNSIGNED", $tmp , 720, "string");    func_mysqli_stmt_bind_result($link, $engine, "d", "DOUBLE(10,2) UNSIGNED", NULL, 740);        $tmp = strval('-99999999.99');    func_mysqli_stmt_bind_result($link, $engine, "d", "DECIMAL(10,2)", $tmp, 760, "string");    func_mysqli_stmt_bind_result($link, $engine, "d", "DECIMAL(10,2)", NULL, 780);    $tmp = strval('99999999.99');    func_mysqli_stmt_bind_result($link, $engine, "d", "DECIMAL(10,2)", $tmp, 800, "string");    func_mysqli_stmt_bind_result($link, $engine, "d", "DECIMAL(10,2)", NULL, 820);        // don't care about date() strict TZ warnings...    func_mysqli_stmt_bind_result($link, $engine, "s", "DATE", @date('Y-m-d'), 840);    func_mysqli_stmt_bind_result($link, $engine, "s", "DATE NOT NULL", @date('Y-m-d'), 860);    func_mysqli_stmt_bind_result($link, $engine, "s", "DATE", NULL, 880);        func_mysqli_stmt_bind_result($link, $engine, "s", "DATETIME", @date('Y-m-d H:i:s'), 900);    func_mysqli_stmt_bind_result($link, $engine, "s", "DATETIME NOT NULL", @date('Y-m-d H:i:s'), 920);    func_mysqli_stmt_bind_result($link, $engine, "s", "DATETIME", NULL, 940);        func_mysqli_stmt_bind_result($link, $engine, "s", "TIMESTAMP", @date('Y-m-d H:i:s'), 960);        func_mysqli_stmt_bind_result($link, $engine, "s", "TIME", @date('H:i:s'), 980);    func_mysqli_stmt_bind_result($link, $engine, "s", "TIME NOT NULL", @date('H:i:s'), 1000);    func_mysqli_stmt_bind_result($link, $engine, "s", "TIME", NULL, 1020);        $tmp = intval(@date('Y'));    func_mysqli_stmt_bind_result($link, $engine, "s", "YEAR", $tmp, 1040, "integer");    func_mysqli_stmt_bind_result($link, $engine, "s", "YEAR NOT NULL", $tmp, 1060, "integer");    func_mysqli_stmt_bind_result($link, $engine, "s", "YEAR", NULL, 1080);        $string255 = func_mysqli_stmt_bind_make_string(255);            func_mysqli_stmt_bind_result($link, $engine, "s", "CHAR(1)", "a", 1110, $hint_str_or_unicode);     func_mysqli_stmt_bind_result($link, $engine, "s", "CHAR(255)", $string255, 1120, $hint_str_or_unicode);    func_mysqli_stmt_bind_result($link, $engine, "s", "CHAR(1) NOT NULL", "a", 1140, $hint_str_or_unicode);    func_mysqli_stmt_bind_result($link, $engine, "s", "CHAR(1)", NULL, 1160);        $string65k = func_mysqli_stmt_bind_make_string(65535);        func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(1)", "a", 1180, $hint_str_or_unicode);    func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(255)", $string255, 1200, $hint_str_or_unicode);    func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(65635)", $string65k, 1220, $hint_str_or_unicode);    func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(1) NOT NULL", "a", 1240, $hint_str_or_unicode);    func_mysqli_stmt_bind_result($link, $engine, "s", "VARCHAR(1)", NULL, 1260);        func_mysqli_stmt_bind_result($link, $engine, "s", "BINARY(1)", "a", 1280);    func_mysqli_stmt_bind_result($link, $engine, "s", "BINARY(1)", chr(0), 1300);    func_mysqli_stmt_bind_result($link, $engine, "s", "BINARY(1) NOT NULL", "b", 1320);    func_mysqli_stmt_bind_result($link, $engine, "s", "BINARY(1)", NULL, 1340);        func_mysqli_stmt_bind_result($link, $engine, "s", "VARBINARY(1)", "a", 1360);    func_mysqli_stmt_bind_result($link, $engine, "s", "VARBINARY(1)", chr(0), 1380);    func_mysqli_stmt_bind_result($link, $engine, "s", "VARBINARY(1) NOT NULL", "b", 1400);    func_mysqli_stmt_bind_result($link, $engine, "s", "VARBINARY(1)", NULL, 1420);        func_mysqli_stmt_bind_result($link, $engine, "s", "TINYBLOB", "a", 1440);    func_mysqli_stmt_bind_result($link, $engine, "s", "TINYBLOB", chr(0), 1460);    func_mysqli_stmt_bind_result($link, $engine, "s", "TINYBLOB NOT NULL", "b", 1480);     func_mysqli_stmt_bind_result($link, $engine, "s", "TINYBLOB", NULL, 1500);        func_mysqli_stmt_bind_result($link, $engine, "s", "TINYTEXT", "a", 1520, $hint_str_or_unicode);    func_mysqli_stmt_bind_result($link, $engine, "s", "TINYTEXT NOT NULL", "a", 1540, $hint_str_or_unicode);    func_mysqli_stmt_bind_result($link, $engine, "s", "TINYTEXT", NULL, 1560, $hint_str_or_unicode);        // Note: you cannot insert any blob values this way. But you can check the API at least partly this way    // Extra BLOB tests are in mysqli_stmt_send_long()    func_mysqli_stmt_bind_result($link, $engine, "b", "BLOB", b"", 1580);    func_mysqli_stmt_bind_result($link, $engine, "b", "TEXT", "", 1600, $hint_str_or_unicode);    func_mysqli_stmt_bind_result($link, $engine, "b", "MEDIUMBLOB", b"", 1620);    func_mysqli_stmt_bind_result($link, $engine, "b", "MEDIUMTEXT", "", 1640, $hint_str_or_unicode);/* test disabled    func_mysqli_stmt_bind_result($link, $engine, "b", "LONGBLOB", "", 1660);    func_mysqli_stmt_bind_result($link, $engine, "b", "LONGTEXT", "", 1680, $hint_str_or_unicode);*/        func_mysqli_stmt_bind_result($link, $engine, "s", "ENUM('a', 'b')", "a", 1700, $hint_str_or_unicode);    func_mysqli_stmt_bind_result($link, $engine, "s", "ENUM('a', 'b')", NULL, 1720, $hint_str_or_unicode);    func_mysqli_stmt_bind_result($link, $engine, "s", "SET('a', 'b')", "a", 1740, $hint_str_or_unicode);      func_mysqli_stmt_bind_result($link, $engine, "s", "SET('a', 'b')", NULL, 1760, $hint_str_or_unicode);        // mysqli_stmt_close($stmt);    mysqli_close($link);    print "done!";?>--EXPECTF--Warning: mysqli_stmt_bind_result(): invalid object or resource mysqli_stmt in %s on line %dWarning: mysqli_stmt_bind_result(): Number of bind variables doesn't match number of fields in prepared statement in %s on line %dWarning: mysqli_stmt_bind_result(): Number of bind variables doesn't match number of fields in prepared statement in %s on line %dint(1)%s(1) "a"done!--UEXPECTF--Warning: mysqli_stmt_bind_result(): invalid object or resource mysqli_stmt in %s on line %dWarning: mysqli_stmt_bind_result(): Number of bind variables doesn't match number of fields in prepared statement in %s on line %dWarning: mysqli_stmt_bind_result(): Number of bind variables doesn't match number of fields in prepared statement in %s on line %dint(1)unicode(1) "a"done!

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -