Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2024-10-01 19:09:01
- Adams
- Plugin Author
- Registered: 2024-08-30
- Posts: 38
"Function strftime() is deprecated"
Hello,
I assume there is a plan to change, fix this strftime near future, or doesn’t hurt for PHP 8.4
Thanks
Offline
Re: "Function strftime() is deprecated"
We have removed all but two instances of the deprecated strftime()
and gmstrftime()
functions. Both remaining instances occur in our own safe_strftime() function.
There are some suggested replacements but I don’t know which is the best to use. Some rely on extensions that may not be loaded. Others seem fraught with locale and timezone issues. Maybe Oleg has some thoughts?
The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.
Txp Builders – finely-crafted code, design and Txp
Offline
Re: "Function strftime() is deprecated"
The only case when one sees this warning should be a php 8.1+ with intl
extension (enabled by default in php 8+) explicitly disabled by someone. Yes, we will remove strftime()
from core when php 9 will be released, but then intl
(or similar) extension will become mandatory.
Online
Re: "Function strftime() is deprecated"
Adams wrote #337915:
I assume there is a plan to change, fix this strftime near future, or doesn’t hurt for PHP 8.4
We have PHP 8.4 compatibility tracking if you find any other related concerns when using the pre-GA 8.4 releases.
Offline
#5 2024-10-02 19:18:56
- Adams
- Plugin Author
- Registered: 2024-08-30
- Posts: 38
Re: "Function strftime() is deprecated"
Thank you
Offline