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