Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[removed in PHP 9.0] Function strftime() is deprecated since PHP 8.1 #9

Open
jofranz opened this issue Apr 3, 2023 · 1 comment
Open
Labels
bug Something isn't working

Comments

@jofranz
Copy link
Member

jofranz commented Apr 3, 2023

FILE: de.systopia.stoken/CRM/Stoken/DateTokens.php

-------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 11 WARNINGS AFFECTING 11 LINES
-------------------------------------------------------------------------------------------------------------------
 57 | WARNING | Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
 58 | WARNING | Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
 62 | WARNING | Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
 63 | WARNING | Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
 67 | WARNING | Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
 68 | WARNING | Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
 69 | WARNING | Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
 73 | WARNING | Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
 74 | WARNING | Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
 75 | WARNING | Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
 76 | WARNING | Function strftime() is deprecated since PHP 8.1; Use date() or IntlDateFormatter::format() instead
-------------------------------------------------------------------------------------------------------------------
@jofranz
Copy link
Member Author

jofranz commented Jun 7, 2023

Using strftime / gmstrftime functions result in a deprecation notice in PHP 8.1 and later. These functions will be removed in PHP 9.0.

https://php.watch/versions/8.1/strftime-gmstrftime-deprecated#replacements

@jofranz jofranz changed the title Function strftime() is deprecated since PHP 8.1 [removed in PHP 9.0] Function strftime() is deprecated since PHP 8.1 Jun 7, 2023
@jensschuppe jensschuppe added the bug Something isn't working label Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants