[php-src] PR #22250: mysqli: Fix memory leak in mysqli_execute_query()

From: Date: Sun, 07 Jun 2026 20:40:55 +0000
Subject: [php-src] PR #22250: mysqli: Fix memory leak in mysqli_execute_query()
Groups: php.git-pulls 
Request: Send a blank email to git-pulls+get-36336@lists.php.net to get a copy of this message
Pull Request: https://github.com/php/php-src/pull/22250 Author: iliaal When MYSQLI_REPORT_INDEX is set, stmt->query holds an estrdup() copy of the SQL string. The two argument-validation error paths (non-list array, element-count mismatch) free stmt directly instead of going through php_clear_stmt_bind(), leaking that copy. Reproduces by calling mysqli_execute_query() with a bad $params array under MYSQLI_REPORT_INDEX.

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