Bug #70384 [NEW]: mysqli_real_query(): Unknown type 245 sent by the server

From: Date: Fri, 28 Aug 2015 18:13:56 +0000
Subject: Bug #70384 [NEW]: mysqli_real_query(): Unknown type 245 sent by the server
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-195602@lists.php.net to get a copy of this message
From: marc at infomarc dot info Operating system: Linux PHP version: 7.0.0RC1 Package: MySQLi related Bug Type: Bug Bug description:mysqli_real_query(): Unknown type 245 sent by the server 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 -- Edit bug report at https://bugs.php.net/bug.php?id=70384&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=70384&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=70384&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=70384&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=70384&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=70384&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=70384&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=70384&r=needscript Try newer version: https://bugs.php.net/fix.php?id=70384&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=70384&r=support Expected behavior: https://bugs.php.net/fix.php?id=70384&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=70384&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=70384&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=70384&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=70384&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=70384&r=dst IIS Stability: https://bugs.php.net/fix.php?id=70384&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=70384&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=70384&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=70384&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=70384&r=mysqlcfg

« previous php.bugs (#195602) next »