php mysqli fetch warning
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
php7.0 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
Hi, I hit an issue with phpMyAdmin and submitted it as an issue with them on github (https:/
My server uses all stock packages from the ubuntu repositories:
phpmyadmin ver 4.5.4.1deb2ubuntu2.
Apache/2.4.18 (Ubuntu)
PHP version: 7.0.15-
Using the below code:
<?php
error_reporting
$link = mysqli_
/* check connection */
if (mysqli_
printf("Connect failed: %s\n", mysqli_
exit();
}
$query = "SHOW SLAVE HOSTS";
$result = mysqli_query($link, $query);
/* get associative array */
while (($row = mysqli_
print_r($row);
}
/* free result set */
mysqli_
/* close connection */
mysqli_
?>
I get the following output:
PHP Warning: mysqli_
PHP Warning: mysqli_
Array
(
[Server_id] => 2
[Host] => blacknas
[Port] => 3306
[Master_id] => 1
)
The PHP Warnings are the item i'm trying to get support with but I'm finding little out in the ether.
Hello and thank you for filing this report.
I will probably SRU 7.0.17 early in the 17.10 cycle to the affected releases -- but this looks different than the bug I have seen in mysqli (and fixed in the version you have, as mentioned in the phpmyadmin bug). I have submitted a test build at: https:/ /launchpad. net/~nacc/ +archive/ ubuntu/ php7testbuilds for 7.0.17 for xenial. Please do no run this in production, but see if it resolves your issue.
If it does, we can look and see if a single upstream commit can be found that fixes it between 7.0.15 and 7.0.17.
If it doesn't, could you file a bug upstream (with PHP) and provide a link here? Sorry for making you chase down those leads.
Either re-mark this as New when you have a result!