|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2015-08-28 18:13 UTC] marc at infomarc dot info
Description: ------------ I report this for 7.0.0RC1 but am able to reproduce also on PHP 5.6.7. MySQL Server is 5.7.8-rc. Test table created with CREATE TABLE `marctable` ( `id` int(11) NOT NULL AUTO_INCREMENT, `jsoncol` json DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHARSET=latin1 Test script: --------------- <?php $link = mysqli_init(); $connect_result = mysqli_real_connect($link, '127.0.0.1', 'userxxx', 'passxxx', 'marcdb'); echo "connect_result: " . $connect_result . "\n"; $query_result = mysqli_real_query($link, "select * from marctable"); echo "query result: " . $query_result . "\n"; echo "mysqli_error: " . mysqli_error($link) . "\n"; Expected result: ---------------- connect_result: 1 query result: 1 mysqli_error: Actual result: -------------- connect_result: 1 PHP Warning: mysqli_real_query(): Unknown type 245 sent by the server. Please send a report to the developers in bugjson.php on line 9 Warning: mysqli_real_query(): Unknown type 245 sent by the server. Please send a report to the developers in bugjson.php on line 9 zend_mm_heap corrupted PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 14:00:01 2025 UTC |
It looks like the issue is resolved when using the approach given by the OP, however, it's still reproducible in 5.6.16 with the following: $query = mysqli_query($db, $sql); // table contains a JSON field if (false !== $query) { while ($row = mysqli_fetch_array($query) { // do something } }