[php-src] PR #25554: ext/pdo_mysql: Fix crash re-executing a statement after a failed execute

From: Date: Wed, 18 Nov 2026 13:19:13 +0000
Subject: [php-src] PR #25554: ext/pdo_mysql: Fix crash re-executing a statement after a failed execute
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-40772@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/25554 Author: iliaal With libmysqlclient, executing a prepared statement again after a failed execute() segfaults when its parameters were bound with bindParam() or bindValue() and not rebound, as in a retry after a deadlock. The failure path zeroed the bind array, including the is_null and length pointers that are set once at bind time. The success path never clears it, and EXEC_PRE rewrites every field libmysqlclient reads before each bind, so the clear is dropped. The test only runs on the libmysqlclient lane.

« previous php.git-pulls (#40772) next »