Commit 73d2da79a14 for php

commit 73d2da79a14fe21982ab564f7d39bf200d9bbd07
Merge: 6ccd1333205 dbeb8a77fbf
Author: Ilia Alshanetsky <ilia@ilia.ws>
Date:   Sun Oct 18 15:41:19 2026 -0400

    Merge branch 'PHP-8.5' into PHP-8.6

    * PHP-8.5:
      Fix GH-24372: Keep stmt->executed set across PDOStatement::execute()

diff --cc ext/pdo/pdo_stmt.c
index c43e08fcf92,a27c491b5cd..76ef0a0f5c6
--- a/ext/pdo/pdo_stmt.c
+++ b/ext/pdo/pdo_stmt.c
@@@ -599,8 -580,8 +578,8 @@@ static inline void fetch_value(pdo_stmt

  static bool do_fetch_common(pdo_stmt_t *stmt, enum pdo_fetch_orientation ori, zend_long offset) /* {{{ */
  {
- 	if (!stmt->executed) {
+ 	if (!stmt->executed || stmt->execute_incomplete) {
 -		return 0;
 +		return false;
  	}

  	if (!dispatch_param_event(stmt, PDO_PARAM_EVT_FETCH_PRE)) {