PHP  
 PHP_7_0
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/mysqli/tests/bug74021.phpt ('Bug #74021 (fetch_array broken data. Data more then MEDIUMBLOB)')

Script

1: <?php
2:
3:
require_once("connect.inc");
4:
$link my_mysqli_connect($host$user$passwd$db$port$socket);
5:
6:
$link->query('SET @@global.max_allowed_packet = 67108864');
7:
$link->close();
8:
9:
$link my_mysqli_connect($host$user$passwd$db$port$socket);
10:
$res $link->query("SELECT RPAD('1',9000000,'1') as a,RPAD('1',9000000,'1') as b");
11:
$r $res->fetch_array();
12:
var_dump(md5($r['a']));
13:
var_dump(md5($r['b']));
14:
?>
15:

Expected

string(32) "42ca0fd16ab6b6d4b9d47dc0a4a8b12a"
string(32) "42ca0fd16ab6b6d4b9d47dc0a4a8b12a"

Output

string(32) "d41d8cd98f00b204e9800998ecf8427e"
string(32) "d41d8cd98f00b204e9800998ecf8427e"

Diff

001+ string(32) "d41d8cd98f00b204e9800998ecf8427e"
002+ string(32) "d41d8cd98f00b204e9800998ecf8427e"
001- string(32) "42ca0fd16ab6b6d4b9d47dc0a4a8b12a"
002- string(32) "42ca0fd16ab6b6d4b9d47dc0a4a8b12a"

 

Generated at Wed, 08 Nov 2017 19:36:35 +0000 (8 days ago)

Copyright © 2005-2017 The PHP Group
All rights reserved.