Skip to content

date: Fix Z_PARAM_DATE_TIME_DURATION() error handling - #23097

Merged
TimWolla merged 1 commit into
php:masterfrom
TimWolla:z-param-date-time-duration-fix
Aug 7, 2026
Merged

date: Fix Z_PARAM_DATE_TIME_DURATION() error handling#23097
TimWolla merged 1 commit into
php:masterfrom
TimWolla:z-param-date-time-duration-fix

Conversation

@TimWolla

@TimWolla TimWolla commented Aug 7, 2026

Copy link
Copy Markdown
Member

The Z_PARAM_*() macros rely on break; to jump to ZEND_PARSE_PARAMETERS_END(), thus we must not wrap their code into a do { } while(0) loop, but instead must use a regular block.

The `Z_PARAM_*()` macros rely on `break;` to jump to
`ZEND_PARSE_PARAMETERS_END()`, thus we must not wrap their code into a
`do { } while(0)` loop, but instead must use a regular block.
@TimWolla
TimWolla requested a review from derickr as a code owner August 7, 2026 10:38
@TimWolla
TimWolla merged commit b60b722 into php:master Aug 7, 2026
18 checks passed
@TimWolla
TimWolla deleted the z-param-date-time-duration-fix branch August 7, 2026 11:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant