Files
Ilia Alshanetsky 17c806d8b3 ext/pdo: Clear bindings when execute() fails to bind its array (#23970)
PDOStatement::execute() destroyed bound_params before registering the
entries of its array argument, so a failure part-way through (a value whose
string conversion throws) left the entries registered so far in place, and
a following execute() without arguments ran with them. Drop the partial
table on failure instead. really_register_bound_param() now looks the table
up only after converting the value, and raises the PDO_PARAM_EVT_ALLOC
error after undoing its insert, so a __toString() or error handler that
re-executes the statement no longer frees the table in use.
2026-10-24 19:25:22 -04:00
..
2024-09-01 13:33:53 +02:00
2024-09-01 13:33:53 +02:00
…
2026-10-22 12:09:28 +01:00
2026-05-06 13:11:01 +02:00
2026-05-06 13:11:01 +02:00