Skip to content

date: drop some unused APIs - #24662

Open
Girgias wants to merge 3 commits into
php:masterfrom
Girgias:2026-10-date-api-drop
Open

Girgias wants to merge 3 commits into
php:masterfrom
Girgias:2026-10-date-api-drop

Conversation

@Girgias

@Girgias Girgias commented Oct 24, 2026

Copy link
Copy Markdown
Member

Effectively making unused APIs private and no longer exposed in the header.

Commits should be reviewed individually.

Comment thread ext/date/php_date.c
/* }}} */

/* {{{ php_date_set_tzdb - NOT THREADSAFE */
PHPAPI void php_date_set_tzdb(timelib_tzdb *tzdb)

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.

You can't drop this, this is used in a popular PIE/PECL extension for updating the timezone database independently from PHP

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.

Okay so even SourceGraph is useless now to check stuff.

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.

I think SourceGraph was always best-effort without guarantees.
Anyway the package is https://github.com/php/pecl-datetime-timezonedb/blob/master/timezonedb.c, maintained by Derick

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