mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Improve bug74021 test (#17514)
This commit is contained in:
parent
6919b95010
commit
d6d23fe002
1 changed files with 14 additions and 0 deletions
|
@ -17,7 +17,21 @@ $link->close();
|
|||
|
||||
$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
|
||||
$res = $link->query("SELECT RPAD('1',9000000,'1') as a,RPAD('1',9000000,'1') as b");
|
||||
if ($res === false) {
|
||||
printf("[001] [%d] %s\n", $link->errno, $link->error);
|
||||
}
|
||||
|
||||
$r = $res->fetch_array();
|
||||
if (!is_array($r)) {
|
||||
printf("[002] Expecting array, got %s/%s\n", gettype($r), $r);
|
||||
}
|
||||
if(!is_string($r['a'])) {
|
||||
printf("[003] Expecting string, got %s/%s\n", gettype($r['a']), $r['a']);
|
||||
}
|
||||
if(!is_string($r['b'])) {
|
||||
printf("[004] Expecting string, got %s/%s\n", gettype($r['b']), $r['b']);
|
||||
}
|
||||
|
||||
var_dump(md5($r['a']));
|
||||
var_dump(md5($r['b']));
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue