Skip to content

date: Fix typo in condition in date_period_init_iso8601_string()#22253

Closed
ndossche wants to merge 1 commit into
php:PHP-8.4from
ndossche:date-typo
Closed

date: Fix typo in condition in date_period_init_iso8601_string()#22253
ndossche wants to merge 1 commit into
php:PHP-8.4from
ndossche:date-typo

Conversation

@ndossche

@ndossche ndossche commented Jun 7, 2026

Copy link
Copy Markdown
Member

Now the address is being checked instead of the value, but I believe the value should be checked against 0, not the pointer against NULL.

Found by static analysis.

Now the address is being checked instead of the value, but I believe the
value should be checked against 0, not the pointer against NULL.
@ndossche ndossche requested a review from kocsismate June 7, 2026 21:08
@ndossche ndossche requested a review from derickr as a code owner June 7, 2026 21:08

@derickr derickr left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@ndossche ndossche closed this in f11c1fa Jun 11, 2026
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.

3 participants