source: src/router/php7/ext/mysqli/tests/bug74021.phpt @ 31874

Last change on this file since 31874 was 31874, checked in by brainslayer, 3 months ago

update php

File size: 693 bytes
Line 
1--TEST--
2Bug #74021 (fetch_array broken data. Data more then MEDIUMBLOB)
3--SKIPIF--
4<?php
5require_once('skipif.inc');
6require_once('skipifconnectfailure.inc');
7?>
8--FILE--
9<?php
10
11require_once("connect.inc");
12$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
13
14$link->query('SET @@global.max_allowed_packet = 67108864');
15$link->close();
16
17$link = my_mysqli_connect($host, $user, $passwd, $db, $port, $socket);
18$res = $link->query("SELECT RPAD('1',9000000,'1') as a,RPAD('1',9000000,'1') as b");
19$r = $res->fetch_array();
20var_dump(md5($r['a']));
21var_dump(md5($r['b']));
22?>
23--EXPECT--
24string(32) "42ca0fd16ab6b6d4b9d47dc0a4a8b12a"
25string(32) "42ca0fd16ab6b6d4b9d47dc0a4a8b12a"
Note: See TracBrowser for help on using the repository browser.