Bug #74320 [NEW]: mysqli_fetch_array(): Malformed server packet & Error while reading a row...

From: Date: Mon, 27 Mar 2017 21:57:55 +0000
Subject: Bug #74320 [NEW]: mysqli_fetch_array(): Malformed server packet & Error while reading a row...
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-208100@lists.php.net to get a copy of this message
From: kelvin dot middleton at gmail dot com Operating system: Ubuntu 16.04 PHP version: 7.0.17 Package: MySQLi related Bug Type: Bug Bug description:mysqli_fetch_array(): Malformed server packet & Error while reading a row... Description: ------------ Initially found a problem with phpMyAdmin not returning slave information in a master/slave replication configuration. Issue raised their concluded the problem likely resided in PHP somewhere (https://github.com/phpmyadmin/phpmyadmin/issues/13117). Was using stock php package from ubuntu ppa (ver 7.0.15-0ubuntu0.16.04.4) so I raised a launchpad bug (https://bugs.launchpad.net/ubuntu/+source/php7.0/+bug/1675117) which progressed to providing me with a ppa to test php 7.0.17. Testing still has the same errors when using the test script. Test script: --------------- Script is included in my bug submission here https://bugs.launchpad.net/ubuntu/+source/php7.0/+bug/1675117 Actual result: -------------- Two errors return, excerpt below... kelvin@xxx-server:~$ php php_test.php PHP Warning: mysqli_fetch_array(): Malformed server packet. Field length pointing 0 bytes after end of packet in /home/kelvin/php_test.php on line 16 PHP Warning: mysqli_fetch_array(): Error while reading a row in /home/kelvin/php_test.php on line 16 Array ( [Server_id] => 2 [Host] => xxx [Port] => 3306 [Master_id] => 1 ) -- Edit bug report at https://bugs.php.net/bug.php?id=74320&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=74320&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=74320&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=74320&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=74320&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=74320&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=74320&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=74320&r=needscript Try newer version: https://bugs.php.net/fix.php?id=74320&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=74320&r=support Expected behavior: https://bugs.php.net/fix.php?id=74320&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=74320&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=74320&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=74320&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=74320&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=74320&r=dst IIS Stability: https://bugs.php.net/fix.php?id=74320&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=74320&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=74320&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=74320&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=74320&r=mysqlcfg

« previous php.bugs (#208100) next »