Closed kitserve closed 1 year ago
Low priority, but this isn't fully fixed. There is a TODO comment in the code where the behaviour could be improved. It would also be worth doing a sweep of the existing code, checking for other functions whose signatures and error behaviour doesn't match.
According to https://www.php.net/manual/en/function.mysql-free-result,
mysql_free_result(resource $result)
returns abool
, and issues a warning when its argument is not a resource. By contrast, per https://www.php.net/manual/en/mysqli-result.free.php,mysqli_free_result(mysqli_result $result)
returnsvoid
, and throws an error when its argument is not an openmysqli_result
object.