1
0
mirror of https://github.com/php/php-src.git synced 2026-03-29 03:32:20 +02:00

Merge branch 'PHP-7.0' into PHP-7.1

This commit is contained in:
Andrey Hristov
2016-12-12 21:52:59 +02:00

View File

@@ -21,7 +21,13 @@ if (!$link->query("CREATE TABLE `bug_bits` (`inty` bigint(20) unsigned NOT NULL
printf("[003] [%d] %s\n", $link->errno, $link->error);
}
$insertQuery = "INSERT INTO `bug_bits` VALUES (18446744073709551615, 18446744073709551615), (18446744073709551614, 18446744073709551614)";
$insertQuery = "INSERT INTO `bug_bits` VALUES (18446744073709551615, 18446744073709551615)".
",(18446744073709551614, 18446744073709551614)".
",(4294967296, 4294967296)".
",(4294967295, 4294967295)".
",(2147483648, 2147483648)".
",(2147483647, 2147483647)".
",(1, 1)";
if (!$link->query($insertQuery)) {
printf("[004] [%d] %s\n", $link->errno, $link->error);
}
@@ -44,7 +50,7 @@ require_once("connect.inc");
if (!$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket))
printf("[c001] [%d] %s\n", mysqli_connect_errno(), mysqli_connect_error());
if (!mysqli_query($link, "DROP TABLE IF EXISTS bug72489"))
if (!mysqli_query($link, "DROP TABLE IF EXISTS bug_bits"))
printf("[c002] Cannot drop table, [%d] %s\n", mysqli_errno($link), mysqli_error($link));
mysqli_close($link);
@@ -62,4 +68,34 @@ array(2) {
["bitty"]=>
string(20) "18446744073709551614"
}
array(2) {
["inty"]=>
string(10) "4294967296"
["bitty"]=>
string(10) "4294967296"
}
array(2) {
["inty"]=>
string(10) "4294967295"
["bitty"]=>
string(10) "4294967295"
}
array(2) {
["inty"]=>
string(10) "2147483648"
["bitty"]=>
string(10) "2147483648"
}
array(2) {
["inty"]=>
string(10) "2147483647"
["bitty"]=>
string(10) "2147483647"
}
array(2) {
["inty"]=>
string(1) "1"
["bitty"]=>
string(1) "1"
}
Done