[php-src] PR #11926: Deprecate mysqli_kill
| From: | kamil-tekiela | Date: | Wed, 09 Aug 2023 20:40:36 +0000 |
| Subject: | [php-src] PR #11926: Deprecate mysqli_kill | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-23333@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/11926
Author: kamil-tekiela
MySQL 5.7 has deprecated
COM_PROCESS_KILL which is used under the hood by mysqli. See:
- https://dev.mysql.com/worklog/task/?id=8754
- https://dev.mysql.com/doc/c-api/8.0/en/mysql-kill.html
- https://dev.mysql.com/doc/dev/mysql-server/latest/page_protocol_com_process_kill.html
I understand it may be controversial for PHP, but we shouldn't support commands that are
deprecated in MySQL. The only problem with this is that the way that PHP tests used this function is
actually problematic. When we use mysqli_kill to kill our own process there's no
error, but when we use SQL KILL then we get an error about aborted query. It makes
sense, but creates a problematic upgrade path. Not sure if there's a way to deal with this.
We could emulate that command in mysqlnd, but that's an undesirable solution.