You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add missing 8.0.0 changelog for datetime functions no longer returning false
In PHP 7.x, several datetime functions returned `false` on parameter
parsing failure. PHP 8.0 changed this to throw `TypeError` instead
(per RFC: Consistent type errors for internal functions).
This changelog entry was already documented for
`DateTimeZone::listIdentifiers`/`timezone_identifiers_list`, but was
missing from the following functions:
- `date()`
- `gmdate()`
- `localtime()`
- `getdate()`
- `date_parse()`
- `date_parse_from_format()`
- `date_sun_info()`
Functions that still return `false` from their own logic (e.g.
`strtotime()`, `mktime()`, `date_create()`) are not included, as the
parameter parsing change is not observable in their return types.
The issue also requests reverting the return value description to
mention `false`, but the old text was inaccurate (non-numeric strings
were coerced to `0`, not rejected) and was intentionally removed in
GH-2130.
Closes#5460
0 commit comments