[php-src] PHP-8.6: Merge branch 'PHP-8.5' into PHP-8.6
| From: | Ilia Alshanetsky | Date: | Tue, 06 Oct 2026 00:16:44 +0000 |
| Subject: | [php-src] PHP-8.6: Merge branch 'PHP-8.5' into PHP-8.6 | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-141988@lists.php.net to get a copy of this message | ||
Author: Ilia Alshanetsky (iliaal)
Date: 2026-10-05T20:09:07-04:00
Commit: https://github.com/php/php-src/commit/9645723fec06892a0273c5afbef11dfe1dac1596
Raw diff: https://github.com/php/php-src/commit/9645723fec06892a0273c5afbef11dfe1dac1596.diff
Merge branch 'PHP-8.5' into PHP-8.6
* PHP-8.5:
ext/pdo: Return false from rewrite_name_to_position() on IM001 error
Changed paths:
M ext/pdo/pdo_stmt.c
Diff:
diff --git a/ext/pdo/pdo_stmt.c b/ext/pdo/pdo_stmt.c
index 8a4b3337e2ff..c43e08fcf929 100644
--- a/ext/pdo/pdo_stmt.c
+++ b/ext/pdo/pdo_stmt.c
@@ -74,7 +74,7 @@ static inline bool rewrite_name_to_position(pdo_stmt_t *stmt, struct pdo_bound_p
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 true;