[php-src] PR #12978: Deprecate date_sunrise and date_sunset constants and config
| From: | jorgsowa | Date: | Tue, 19 Dec 2023 22:00:01 +0000 |
| Subject: | [php-src] PR #12978: Deprecate date_sunrise and date_sunset constants and config | ||
| Groups: | php.git-pulls | ||
| Request: | Send a blank email to git-pulls+get-24547@lists.php.net to get a copy of this message | ||
Pull Request: https://github.com/php/php-src/pull/12978
Author: jorgsowa
Because the [PR previously tackling the problem](https://github.com/php/php-src/pull/7248) of
deprecation of constants and settings related to the function
date_sunrise and
date_sunset was abandoned I want to tackle this problem again.
This PR deprecates the constants and ini settings used exclusively by functions
[date_sunset()](https://www.php.net/manual/en/function.date-sunset.php) and
date_sunrise():
- [SUNFUNCS_RET_STRING](https://www.php.net/manual/en/function.date-sunset.php)
- [SUNFUNCS_RET_DOUBLE](https://www.php.net/manual/en/function.date-sunset.php)
- [SUNFUNCS_RET_TIMESTAMP](https://www.php.net/manual/en/function.date-sunset.php)
- ini settings
[date.default_latitude](https://www.php.net/manual/en/datetime.configuration.php#ini.date.default-latitude)
- ini settings
[date.default_longitude](https://www.php.net/manual/en/datetime.configuration.php#ini.date.default-longitude)
- ini settings
[date.sunrise_zenith](https://www.php.net/manual/en/datetime.configuration.php#ini.date.sunrise-zenith)
- ini settings
[date.sunset_zenith](https://www.php.net/manual/en/datetime.configuration.php#ini.date.sunset-zenith)
Do you think it could be included in the [PHP 8.4 Deprecations
RFC](https://wiki.php.net/rfc/deprecations_php_8_4)?