Skip to content

ext/date: null bytes in timezones can only happen via HT initialization#19357

Merged
Girgias merged 1 commit into
php:masterfrom
Girgias:date-drop-check
Aug 6, 2025
Merged

ext/date: null bytes in timezones can only happen via HT initialization#19357
Girgias merged 1 commit into
php:masterfrom
Girgias:date-drop-check

Conversation

@Girgias
Copy link
Copy Markdown
Member

@Girgias Girgias commented Aug 3, 2025

In which case we don't use the warning_message anyway

@Girgias Girgias marked this pull request as ready for review August 3, 2025 22:25
@Girgias Girgias requested a review from derickr as a code owner August 3, 2025 22:25
@Girgias Girgias requested a review from ndossche August 5, 2025 11:53
Comment thread ext/date/php_date.c Outdated
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.

The cleaner, and faster, approach is to move this check simply to php_date_timezone_initialize_from_hash IMO.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Makes sense, wasn't sure if I should move it up or not.

In which case we don't use the warning_message anyway
@Girgias Girgias merged commit aa9694b into php:master Aug 6, 2025
9 checks passed
@Girgias Girgias deleted the date-drop-check branch August 6, 2025 20:02
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.

2 participants