[php-src] PR #11929: Deprecate mysqli_refresh
| From: | kamil-tekiela | Date: | Wed, 09 Aug 2023 23:30:43 +0000 |
| Subject: | [php-src] PR #11929: Deprecate mysqli_refresh | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23336@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11929
Author: kamil-tekiela
This functions was using the binary protocol command
COM_REFRESH which is deprecated as
of MySQL 5.7. We should not be using deprecated commands, so let's deprecate this function
which has very easy alternatives in plain text SQL. See:
- https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_com_refresh.html
- http://www.tocker.ca/2014/05/15/proposal-to-deprecate-com_refresh-packet.html
- https://dev.mysql.com/doc/c-api/8.0/en/mysql-refresh.html
We didn't have any tests for it so there was nothing to adjust.