Skip to content

ext/pdo: Clear failed execute results - #402

Closed
iliaal wants to merge 2 commits into
PHP-8.4from
fix/aph-pdo-failed-execute-stale-result-uj96-84-work
Closed

iliaal wants to merge 2 commits into
PHP-8.4from
fix/aph-pdo-failed-execute-stale-result-uj96-84-work

Conversation

@iliaal

@iliaal iliaal commented Sep 25, 2026

Copy link
Copy Markdown
Owner

Invalidate active cursors and executed state on every execute failure while avoiding duplicate parameter or driver error reports.

Close the active cursor and clear the executed state when parameter
conversion, parameter events, column discovery, or driver execution
fail, so stale result rows cannot be fetched.
A failed column describe already returned false without a warning.
Clearing the previous result on that failure keeps the same reporting.
@iliaal

iliaal commented Sep 26, 2026

Copy link
Copy Markdown
Owner Author

Promoted as php#23938.

@iliaal iliaal closed this Sep 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant