Commit 9645723fec0 for php

commit 9645723fec06892a0273c5afbef11dfe1dac1596
Merge: 464c95a78ec 05f7a9ad4ac
Author: Ilia Alshanetsky <ilia@ilia.ws>
Date:   Mon Oct 5 20:09:07 2026 -0400

    Merge branch 'PHP-8.5' into PHP-8.6

    * PHP-8.5:
      ext/pdo: Return false from rewrite_name_to_position() on IM001 error

diff --cc ext/pdo/pdo_stmt.c
index 8a4b3337e2f,a343117cbc0..c43e08fcf92
--- a/ext/pdo/pdo_stmt.c
+++ b/ext/pdo/pdo_stmt.c
@@@ -74,10 -76,10 +74,10 @@@ static inline bool rewrite_name_to_posi
  			if (param->paramno >= 0) {
  				/* TODO Error? */
  				pdo_raise_impl_error(stmt->dbh, stmt, "IM001", "PDO refuses to handle repeating the same :named parameter for multiple positions with this driver, as it might be unsafe to do so.  Consider using a separate name for each parameter instead");
- 				return -1;
+ 				return false;
  			}
  			param->paramno = position;
 -			return 1;
 +			return true;
  		} ZEND_HASH_FOREACH_END();
  		/* TODO Error? */
  		pdo_raise_impl_error(stmt->dbh, stmt, "HY093", "parameter was not defined");